sbt-extras: make sure which and curl are available in the PATH

This commit is contained in:
Richard Wallace 2017-10-31 13:27:48 -07:00 committed by Orivej Desh
parent 6798212571
commit 29c182f2b2

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, which, curl, makeWrapper }:
let
rev = "77686b3dfa20a34270cc52377c8e37c3a461e484";
@ -17,9 +17,13 @@ stdenv.mkDerivation {
dontBuild = true;
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install bin/sbt $out/bin
wrapProgram $out/bin/sbt --prefix PATH : ${stdenv.lib.makeBinPath [ which curl]}
'';
meta = {