2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, tk, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "cbrowser";
|
|
|
|
version = "0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = ''
|
2021-07-21 07:28:18 +00:00
|
|
|
mkdir -p $out/bin $out/share/${pname}-${version}
|
|
|
|
cp -R * $out/share/${pname}-${version}/
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
makeWrapper $out/share/${pname}-${version}/cbrowser $out/bin/cbrowser \
|
2020-04-24 23:36:52 +00:00
|
|
|
--prefix PATH : ${tk}/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tcl/Tk GUI front-end to cscope";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cbrowser";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|