about summary refs log tree commit diff
path: root/pkgs/tools/system/gt5/default.nix
blob: 68b0e3197162127594157779490892db374020f4 (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
{lib, stdenv, fetchurl}:

stdenv.mkDerivation rec {
  pname = "gt5";
  version = "1.4.0";

  src = fetchurl {
    url = "mirror://sourceforge/gt5/gt5-${version}.tar.gz";
    sha256 = "0gm0gzyp4d9rxqddbaskbz5zvmlhyr4nyb5x9g7x4abyyxqjlnkq";
  };

  patchPhase = ''
    sed 's/-o root -g root//' -i Makefile
  '';

  preConfigure = ''
    makeFlags="$makeFlags PREFIX=$out"
  '';

  meta = {
    description = "Diff-capable 'du' browser";
    homepage = "https://gt5.sourceforge.net/";
    license = lib.licenses.gpl2Plus;
    maintainers = [ ];
    platforms = with lib.platforms; all;
    mainProgram = "gt5";
  };
}