From b31b26262360c67332f60c4f6caef9a51a12b4c8 Mon Sep 17 00:00:00 2001 From: Fernando J Pando Date: Fri, 16 Sep 2016 16:27:45 -0400 Subject: [PATCH] buildbot: 0.9.0rc3 wrapper fix - Tested on Linux - Tested binary execution - Fixes missing PYTHONPATH --- .../tools/build-managers/buildbot/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/tools/build-managers/buildbot/default.nix b/pkgs/development/tools/build-managers/buildbot/default.nix index b38395693e3b..4431105d18f8 100644 --- a/pkgs/development/tools/build-managers/buildbot/default.nix +++ b/pkgs/development/tools/build-managers/buildbot/default.nix @@ -63,6 +63,16 @@ pythonPackages.buildPythonApplication (rec { sed -i.bak -e '69,84d' buildbot/test/unit/test_www_config.py ''; + postFixup = '' + buildPythonPath "$out" + patchPythonScript "$out/bin/buildbot" + mv -v $out/bin/buildbot $out/bin/.wrapped-buildbot + echo "#!/bin/bash" > $out/bin/buildbot + echo "export PYTHONPATH=$out/lib/python2.7/site-packages:$PYTHONPATH" >> $out/bin/buildbot + echo "exec $out/bin/.wrapped-buildbot \"\$@\"" >> $out/bin/buildbot + chmod -c 755 $out/bin/buildbot + ''; + meta = with stdenv.lib; { homepage = http://buildbot.net/; description = "Continuous integration system that automates the build/test cycle";