Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation, lib, fetchurl, makeWrapper, python3, qmake, ctags, gdb }:
2
3mkDerivation rec {
4 pname = "gede";
5 version = "2.18.3";
6
7 src = fetchurl {
8 url = "http://gede.dexar.se/uploads/source/${pname}-${version}.tar.xz";
9 sha256 = "sha256-RUl60iPa4XSlUilpYKaYQbRmLqthKHAvYonnhufjPsE=";
10 };
11
12 nativeBuildInputs = [ qmake makeWrapper python3 ];
13
14 buildInputs = [ ctags ];
15
16 strictDeps = true;
17
18 dontUseQmakeConfigure = true;
19
20 dontBuild = true;
21
22 installPhase = ''
23 python build.py install --verbose --prefix="$out"
24 wrapProgram $out/bin/gede \
25 --prefix PATH : ${lib.makeBinPath [ ctags gdb ]}
26 '';
27
28 meta = with lib; {
29 description = "Graphical frontend (GUI) to GDB";
30 mainProgram = "gede";
31 homepage = "http://gede.dexar.se";
32 license = licenses.bsd2;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ juliendehos ];
35 };
36}