buildbot: 0.9.0rc3 wrapper fix

- Tested on Linux
- Tested binary execution
- Fixes missing PYTHONPATH
This commit is contained in:
Fernando J Pando 2016-09-16 16:27:45 -04:00
parent 57726b54af
commit b31b262623

View file

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