diff options
author | Russell O'Connor <roconnor@theorem.ca> | 2010-10-22 19:10:02 +0000 |
---|---|---|
committer | Russell O'Connor <roconnor@theorem.ca> | 2010-10-22 19:10:02 +0000 |
commit | 9bcb9bcea1fadc779ffb25daf4453022401820e3 (patch) | |
tree | 195897129b52f098cca815e7d105dc796bc4a102 /pkgs/development/tools/build-managers | |
parent | 9992ba5e3fe4220c79db4779b576b0b3a139fd1c (diff) |
Patching scons to give an absolute path to python rather than using ".../bin/env python"
When users install scons, users no longer need to also install python in their environment. svn path=/nixpkgs/trunk/; revision=24425
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r-- | pkgs/development/tools/build-managers/scons/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/scons/default.nix b/pkgs/development/tools/build-managers/scons/default.nix index fc9e4e2497d8a..d23940dda945c 100644 --- a/pkgs/development/tools/build-managers/scons/default.nix +++ b/pkgs/development/tools/build-managers/scons/default.nix @@ -13,6 +13,13 @@ stdenv.mkDerivation { sha256 = "0qk74nrnm9qlijrq6gmy8cyhjgp0gis4zx44divnr8n487d5308a"; }; + preConfigure = '' + for i in script/* + do + substituteInPlace $i --replace "/usr/bin/env python" "${python}/bin/python" + done + ''; + propagatedBuildInputs = [python makeWrapper]; buildPhase = "python setup.py install --prefix=$out --install-lib=$(toPythonPath $out) --hardlink-scons -O1"; installPhase = "for n in $out/bin/*; do wrapProgram $n --suffix PYTHONPATH ':' \"$(toPythonPath $out)\"; done"; |