From f54b52f962bf85da7495113f12f265e985364f89 Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Sun, 26 Feb 2017 22:27:31 +0100 Subject: [PATCH] gede: init at 2.0.3 --- pkgs/development/tools/misc/gede/build.patch | 11 +++++++ pkgs/development/tools/misc/gede/default.nix | 31 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 pkgs/development/tools/misc/gede/build.patch create mode 100644 pkgs/development/tools/misc/gede/default.nix diff --git a/pkgs/development/tools/misc/gede/build.patch b/pkgs/development/tools/misc/gede/build.patch new file mode 100644 index 000000000000..bdd8b7ff5f96 --- /dev/null +++ b/pkgs/development/tools/misc/gede/build.patch @@ -0,0 +1,11 @@ +--- a/build.py 2017-01-16 21:12:43.000000000 +0100 ++++ b/build.py 2017-02-26 22:03:11.394625315 +0100 +@@ -71,7 +71,7 @@ + if do_build: + if not os.path.exists("Makefile"): + print("Generating makefile") +- if subprocess.call(['qmake-qt4']): ++ if subprocess.call(['qmake']): + exit(1) + + print("Compiling (please wait)") diff --git a/pkgs/development/tools/misc/gede/default.nix b/pkgs/development/tools/misc/gede/default.nix new file mode 100644 index 000000000000..5667e496a70a --- /dev/null +++ b/pkgs/development/tools/misc/gede/default.nix @@ -0,0 +1,31 @@ +{stdenv, fetchurl, ctags, qt4, python}: + +stdenv.mkDerivation rec { + + version = "2.0.3"; + name = "gede-${version}"; + src = fetchurl { + url = "http://gede.acidron.com/uploads/source/${name}.tar.xz"; + sha256 = "1znlmkjgrmjl79q73xaa9ybp1xdc3k4h4ynv3jj5z8f92gjnj3kk"; + }; + + buildInputs = [ ctags qt4 python ]; + patches = [ ./build.patch ]; + + unpackPhase = '' + tar xf ${src} + cd ${name} + ''; + configurePhase = ""; + buildPhase = ""; + installPhase = "./build.py install --prefix=$out"; + + meta = with stdenv.lib; { + description = "Graphical frontend (GUI) to GDB"; + homepage = "http://gede.acidron.com"; + license = licenses.bsd2; + platforms = platforms.unix; + maintainers = with maintainers; [ juliendehos ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68356d1f247a..52c6c408e0aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6414,6 +6414,8 @@ with pkgs; funnelweb = callPackage ../development/tools/literate-programming/funnelweb { }; + gede = callPackage ../development/tools/misc/gede { }; + pmd = callPackage ../development/tools/analysis/pmd { }; jdepend = callPackage ../development/tools/analysis/jdepend { };