1 { fetchurl, lib, stdenv, tk, makeWrapper }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "1050mirjab23qsnq3lp3a9vwcbavmh9kznzjm7dr5vkx8b7ffcji";
12 patches = [ ./backslashes-quotes.diff ];
14 nativeBuildInputs = [ makeWrapper ];
18 mkdir -p $out/bin $out/share/${pname}-${version}
19 cp -R * $out/share/${pname}-${version}/
21 makeWrapper $out/share/${pname}-${version}/cbrowser $out/bin/cbrowser \
22 --prefix PATH : ${tk}/bin
26 description = "Tcl/Tk GUI front-end to cscope";
27 mainProgram = "cbrowser";
29 license = lib.licenses.gpl2Plus;
31 homepage = "https://sourceforge.net/projects/cbrowser/";
35 platforms = with lib.platforms; linux;