mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 08:01:50 +00:00
buck: use jdk8
This commit is contained in:
parent
1c62c0f370
commit
ad521d005b
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, jdk11, ant, python3, watchman, bash, makeWrapper }:
|
{ lib, stdenv, fetchFromGitHub, jdk8, ant, python3, watchman, bash, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "buck";
|
pname = "buck";
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||||
grep -l -r '/bin/bash' --null | xargs -0 sed -i -e "s!/bin/bash!${bash}/bin/bash!g"
|
grep -l -r '/bin/bash' --null | xargs -0 sed -i -e "s!/bin/bash!${bash}/bin/bash!g"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper python3 jdk11 ant watchman ];
|
nativeBuildInputs = [ makeWrapper python3 jdk8 ant watchman ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
# Set correct version, see https://github.com/facebook/buck/issues/2607
|
# Set correct version, see https://github.com/facebook/buck/issues/2607
|
||||||
|
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D -m755 buck-out/gen/*/programs/buck.pex $out/bin/buck
|
install -D -m755 buck-out/gen/*/programs/buck.pex $out/bin/buck
|
||||||
wrapProgram $out/bin/buck \
|
wrapProgram $out/bin/buck \
|
||||||
--prefix PATH : "${lib.makeBinPath [ jdk11 watchman python3 ]}"
|
--prefix PATH : "${lib.makeBinPath [ jdk8 watchman python3 ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue