2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, tk, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cbrowser-0.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cbrowser/cbrowser-0.8.tar.gz";
|
|
|
|
sha256 = "1050mirjab23qsnq3lp3a9vwcbavmh9kznzjm7dr5vkx8b7ffcji";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./backslashes-quotes.diff ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ tk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/${name}
|
|
|
|
cp -R * $out/share/${name}/
|
|
|
|
|
|
|
|
makeWrapper $out/share/${name}/cbrowser $out/bin/cbrowser \
|
|
|
|
--prefix PATH : ${tk}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tcl/Tk GUI front-end to cscope";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
homepage = "https://sourceforge.net/projects/cbrowser/";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [viric];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|