1{
2 mkDerivation,
3 lib,
4 fetchFromGitHub,
5 makeWrapper,
6 python3,
7 qtbase,
8 qmake,
9 qtserialport,
10 ctags,
11 gdb,
12}:
13
14mkDerivation rec {
15 pname = "gede";
16 version = "2.22.1";
17
18 src = fetchFromGitHub {
19 owner = "jhn98032";
20 repo = "gede";
21 tag = "v${version}";
22 hash = "sha256-6YSrqLDuV4G/uvtYy4vzbwqrMFftMvZdp3kr3R436rs=";
23 };
24
25 nativeBuildInputs = [
26 ctags
27 makeWrapper
28 python3
29 qmake
30 qtserialport
31 ];
32
33 strictDeps = true;
34
35 dontUseQmakeConfigure = true;
36
37 dontBuild = true;
38
39 installPhase = ''
40 python build.py install --verbose --prefix="$out"
41 wrapProgram $out/bin/gede \
42 --prefix QT_PLUGIN_PATH : ${qtbase}/${qtbase.qtPluginPrefix} \
43 --prefix PATH : ${
44 lib.makeBinPath [
45 ctags
46 gdb
47 ]
48 }
49 '';
50
51 meta = with lib; {
52 description = "Graphical frontend (GUI) to GDB";
53 mainProgram = "gede";
54 homepage = "http://gede.dexar.se";
55 license = licenses.bsd2;
56 platforms = platforms.linux;
57 maintainers = with maintainers; [ juliendehos ];
58 };
59}