about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/cbrowser/default.nix
blob: a8f6e32f1e08c3068fcf79f74e4d599fac473175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ fetchurl, lib, stdenv, tk, makeWrapper }:

stdenv.mkDerivation rec {
  pname = "cbrowser";
  version = "0.8";

  src = fetchurl {
    url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
    sha256 = "1050mirjab23qsnq3lp3a9vwcbavmh9kznzjm7dr5vkx8b7ffcji";
  };

  patches = [ ./backslashes-quotes.diff ];

  nativeBuildInputs = [ makeWrapper ];
  buildInputs = [ tk ];

  installPhase = ''
    mkdir -p $out/bin $out/share/${pname}-${version}
    cp -R * $out/share/${pname}-${version}/

    makeWrapper $out/share/${pname}-${version}/cbrowser $out/bin/cbrowser \
      --prefix PATH : ${tk}/bin
  '';

  meta = {
    description = "Tcl/Tk GUI front-end to cscope";

    license = lib.licenses.gpl2Plus;

    homepage = "https://sourceforge.net/projects/cbrowser/";

    maintainers = with lib.maintainers; [viric];

    platforms = with lib.platforms; linux;
  };
}