summary refs log tree commit diff
path: root/pkgs/development/tools/misc/cbrowser/default.nix
blob: 62aa0ab5decf68b18096c5a910b63811f95ba4d9 (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
{ fetchurl, lib, stdenv, tk, makeWrapper }:

stdenv.mkDerivation rec {
  name = "cbrowser-0.8";

  src = fetchurl {
    url = "mirror://sourceforge/cbrowser/cbrowser-0.8.tar.gz";
    sha256 = "1050mirjab23qsnq3lp3a9vwcbavmh9kznzjm7dr5vkx8b7ffcji";
  };

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

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

  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";

    license = lib.licenses.gpl2Plus;

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

    maintainers = with lib.maintainers; [viric];

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