about summary refs log tree commit diff
path: root/pkgs/development/tools/misc
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2017-07-01 20:54:36 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2017-07-01 21:41:33 +0200
commit4f320d30a420071c5e79314a4fba682862eaa335 (patch)
treed4e4cc0fbe994f5b9f519df0f0e6e465abfe77b1 /pkgs/development/tools/misc
parent6e36e7f209e9177a4f73cb7576ebb546607fe052 (diff)
downloadnixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar.gz
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar.bz2
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar.lz
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar.xz
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.tar.zst
nixlib-4f320d30a420071c5e79314a4fba682862eaa335.zip
gede: fix sandboxed build
build.py relies on /usr/bin/env; invoke python directly instead to
sidestep the issue.
Diffstat (limited to 'pkgs/development/tools/misc')
-rw-r--r--pkgs/development/tools/misc/gede/default.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/development/tools/misc/gede/default.nix b/pkgs/development/tools/misc/gede/default.nix
index 71a34886bc35..73a56fc0e0ba 100644
--- a/pkgs/development/tools/misc/gede/default.nix
+++ b/pkgs/development/tools/misc/gede/default.nix
@@ -1,27 +1,27 @@
-{stdenv, fetchurl, ctags, qt4, python}:
+{ stdenv, fetchurl, ctags, qt4, python }:
 
 stdenv.mkDerivation rec {
-
-  version = "2.0.3";
   name = "gede-${version}";
+  version = "2.0.3";
+
   src = fetchurl {
     url = "http://gede.acidron.com/uploads/source/${name}.tar.xz";
     sha256 = "1znlmkjgrmjl79q73xaa9ybp1xdc3k4h4ynv3jj5z8f92gjnj3kk";
   };
 
-  buildInputs = [ ctags qt4 python ];
+  nativeBuildInputs = [ python ];
+
+  buildInputs = [ ctags qt4 ];
 
   postPatch = ''
     sed -i build.py -e 's,qmake-qt4,qmake,'
   '';
 
-  unpackPhase = ''
-    tar xf ${src}
-    cd ${name}
+  buildPhase = ":";
+
+  installPhase = ''
+    python build.py install --prefix="$out"
   '';
-  configurePhase = "";
-  buildPhase = "";
-  installPhase = "./build.py install --prefix=$out";
 
   meta = with stdenv.lib; {
     description = "Graphical frontend (GUI) to GDB";
@@ -31,4 +31,3 @@ stdenv.mkDerivation rec {
     maintainers = with maintainers; [ juliendehos ];
   };
 }
-