buck: build buckd as well

buck tries to launch buckd to run in the background. While not neccessary, it
does speed up builds.

+12 -5
+12 -5
pkgs/development/tools/build-managers/buck/default.nix
··· 20 buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ]; 21 nativeBuildInputs = [ makeWrapper ]; 22 23 buildPhase = '' 24 ant 25 - ./bin/buck build buck 26 ''; 27 28 installPhase = '' 29 - install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck 30 - wrapProgram $out/bin/buck \ 31 - --prefix PYTHONPATH : $PYTHONPATH \ 32 - --prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" 33 ''; 34 35 meta = with stdenv.lib; {
··· 20 buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ]; 21 nativeBuildInputs = [ makeWrapper ]; 22 23 + targets = [ "buck" "buckd" ]; 24 + 25 buildPhase = '' 26 ant 27 + 28 + for exe in ${toString targets}; do 29 + ./bin/buck build //programs:$exe 30 + done 31 ''; 32 33 installPhase = '' 34 + for exe in ${toString targets}; do 35 + install -D -m755 buck-out/gen/programs/$exe.pex $out/bin/$exe 36 + wrapProgram $out/bin/$exe \ 37 + --prefix PYTHONPATH : $PYTHONPATH \ 38 + --prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" 39 + done 40 ''; 41 42 meta = with stdenv.lib; {