diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-01-13 21:34:50 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-01-13 21:34:50 +0000 |
commit | 54322bbd02c6b09858bd6aa59b33d10397b290ba (patch) | |
tree | 2f9ddb418fc399a86216aad80bcb0b22c37f3cea /pkgs/development/tools/build-managers | |
parent | 5080aa43d31f6f0895fe6651c5b819b1e6a7d6be (diff) |
BuildBot: Fix erroneous absolute paths.
svn path=/nixpkgs/trunk/; revision=19415
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r-- | pkgs/development/tools/build-managers/buildbot/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/buildbot/default.nix b/pkgs/development/tools/build-managers/buildbot/default.nix index ed6bda5c5adfd..92b63869f33be 100644 --- a/pkgs/development/tools/build-managers/buildbot/default.nix +++ b/pkgs/development/tools/build-managers/buildbot/default.nix @@ -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 ]; |