mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #26479 from jgertm/jgertm/buck
buck: build buckd as well
This commit is contained in:
commit
fdf43ddf4a
@ -20,16 +20,23 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
targets = [ "buck" "buckd" ];
|
||||
|
||||
buildPhase = ''
|
||||
ant
|
||||
./bin/buck build buck
|
||||
|
||||
for exe in ${toString targets}; do
|
||||
./bin/buck build //programs:$exe
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck
|
||||
wrapProgram $out/bin/buck \
|
||||
--prefix PYTHONPATH : $PYTHONPATH \
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}"
|
||||
for exe in ${toString targets}; do
|
||||
install -D -m755 buck-out/gen/programs/$exe.pex $out/bin/$exe
|
||||
wrapProgram $out/bin/$exe \
|
||||
--prefix PYTHONPATH : $PYTHONPATH \
|
||||
--prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user