sbt-extras: Add JDK dependency
The derivation would use `java` from the PATH. This fixed the behaviour.
This commit is contained in:
parent
b0114725f3
commit
4ff0429662
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, which, curl, makeWrapper }:
|
||||
{ stdenv, fetchFromGitHub, which, curl, makeWrapper, jdk }:
|
||||
|
||||
let
|
||||
rev = "77686b3dfa20a34270cc52377c8e37c3a461e484";
|
||||
|
@ -21,9 +21,12 @@ stdenv.mkDerivation {
|
|||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
substituteInPlace bin/sbt --replace 'declare java_cmd="java"' 'declare java_cmd="${jdk}/bin/java"'
|
||||
|
||||
install bin/sbt $out/bin
|
||||
|
||||
wrapProgram $out/bin/sbt --prefix PATH : ${stdenv.lib.makeBinPath [ which curl]}
|
||||
wrapProgram $out/bin/sbt --prefix PATH : ${stdenv.lib.makeBinPath [ which curl ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in New Issue