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