mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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
This commit is contained in:
parent
9992ba5e3f
commit
9bcb9bcea1
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user