mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
BuildBot: Fix erroneous absolute paths.
svn path=/nixpkgs/trunk/; revision=19415
This commit is contained in:
parent
5080aa43d3
commit
54322bbd02
@ -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 New Issue
Block a user