BuildBot: Fix erroneous absolute paths.

svn path=/nixpkgs/trunk/; revision=19415
This commit is contained in:
Ludovic Courtès 2010-01-13 21:34:50 +00:00
parent 5080aa43d3
commit 54322bbd02

View file

@ -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 ];