summary refs log tree commit diff
path: root/pkgs/development/tools/misc/gede/default.nix
blob: 7b5e8552f82c99d004a514bb2b0b00b0d71e1d38 (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
{ mkDerivation, lib, fetchurl, makeWrapper, python3, qmake, ctags, gdb }:

mkDerivation rec {
  pname = "gede";
  version = "2.17.1";

  src = fetchurl {
    url = "http://gede.dexar.se/uploads/source/${pname}-${version}.tar.xz";
    sha256 = "0hbsy2ymzgl8xd9mnh43gxdfncy7g6czxfvfyh7zp3ij8yiwf8x3";
  };

  nativeBuildInputs = [ qmake makeWrapper python3 ];

  buildInputs = [ ctags ];

  strictDeps = true;

  dontUseQmakeConfigure = true;

  dontBuild = true;

  installPhase = ''
    python build.py install --verbose --prefix="$out"
    wrapProgram $out/bin/gede \
      --prefix PATH : ${lib.makeBinPath [ ctags gdb ]}
  '';

  meta = with lib; {
    description = "Graphical frontend (GUI) to GDB";
    homepage = "http://gede.dexar.se";
    license = licenses.bsd2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ juliendehos ];
  };
}