sbt: apply autoPatchelfHook only in Linux

This commit is contained in:
regadas 2020-10-11 08:04:16 +01:00
parent 2dfadf168f
commit 4add0567b5
No known key found for this signature in database
GPG key ID: 56776825923FC777

View file

@ -14,9 +14,9 @@ stdenv.mkDerivation rec {
echo -java-home ${jre.home} >>conf/sbtopts
'';
nativeBuildInputs = [ autoPatchelfHook ];
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ autoPatchelfHook ];
buildInputs = [ zlib ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ zlib ];
installPhase = ''
mkdir -p $out/share/sbt $out/bin