BuildBot: Fix erroneous absolute paths.
svn path=/nixpkgs/trunk/; revision=19415
This commit is contained in:
parent
5080aa43d3
commit
54322bbd02
1 changed files with 10 additions and 0 deletions
|
@ -9,6 +9,16 @@ buildPythonPackage (rec {
|
|||
sha256 = "0h77ijf5iqvc8bnfxpsh3hvpr7wj23pkcywd3hcyphv1wwlhmhjv";
|
||||
};
|
||||
|
||||
patchPhase =
|
||||
# The code insists on /usr/bin/tail, /usr/bin/make, etc.
|
||||
'' echo "patching erroneous absolute path references..."
|
||||
for i in $(find -name \*.py)
|
||||
do
|
||||
sed -i "$i" \
|
||||
-e "s|/usr/bin/python|$(type -P python)|g ; s|/usr/bin/||g"
|
||||
done
|
||||
'';
|
||||
|
||||
buildInputs = [ texinfo ];
|
||||
propagatedBuildInputs = [ twisted ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue