Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 37 lines 886 B view raw
1{ fetchurl, lib, stdenv, tk, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 pname = "cbrowser"; 5 version = "0.8"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "1050mirjab23qsnq3lp3a9vwcbavmh9kznzjm7dr5vkx8b7ffcji"; 10 }; 11 12 patches = [ ./backslashes-quotes.diff ]; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 buildInputs = [ tk ]; 16 17 installPhase = '' 18 mkdir -p $out/bin $out/share/${pname}-${version} 19 cp -R * $out/share/${pname}-${version}/ 20 21 makeWrapper $out/share/${pname}-${version}/cbrowser $out/bin/cbrowser \ 22 --prefix PATH : ${tk}/bin 23 ''; 24 25 meta = { 26 description = "Tcl/Tk GUI front-end to cscope"; 27 mainProgram = "cbrowser"; 28 29 license = lib.licenses.gpl2Plus; 30 31 homepage = "https://sourceforge.net/projects/cbrowser/"; 32 33 maintainers = [ ]; 34 35 platforms = with lib.platforms; linux; 36 }; 37}