buck: build buckd as well

buck tries to launch buckd to run in the background. While not neccessary, it
does speed up builds.
This commit is contained in:
Tim Jäger 2017-06-08 15:36:30 -07:00
parent 926f3eada8
commit cfe23e19ab

View file

@ -20,16 +20,23 @@ stdenv.mkDerivation rec {
buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ]; buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
targets = [ "buck" "buckd" ];
buildPhase = '' buildPhase = ''
ant ant
./bin/buck build buck
for exe in ${toString targets}; do
./bin/buck build //programs:$exe
done
''; '';
installPhase = '' installPhase = ''
install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck for exe in ${toString targets}; do
wrapProgram $out/bin/buck \ install -D -m755 buck-out/gen/programs/$exe.pex $out/bin/$exe
--prefix PYTHONPATH : $PYTHONPATH \ wrapProgram $out/bin/$exe \
--prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" --prefix PYTHONPATH : $PYTHONPATH \
--prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}"
done
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {