sbt: drop unconditionally set $SBT_OPTS variable from script

... and rename simple-build-tool to just "sbt", which is the name
everybody uses these days.
This commit is contained in:
Peter Simons
2014-09-12 17:11:38 +02:00
parent ec59929c9f
commit 5b28aebc08
2 changed files with 4 additions and 4 deletions
@@ -0,0 +1,29 @@
{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
version = "0.13.5";
src = fetchurl {
url = "http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${version}/sbt-launch.jar";
sha256 = "05zvb3j7xxswpz7fz2nwbl4dwfdf0cyx5xzjis5fyi2dbzmfdrmp";
};
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/bin
cat > $out/bin/sbt << EOF
#! ${stdenv.shell}
${jre}/bin/java \$SBT_OPTS -jar ${src} "\$@"
EOF
chmod +x $out/bin/sbt
'';
meta = {
homepage = http://www.scala-sbt.org/;
license = stdenv.lib.licenses.bsd3;
description = "A build tool for Scala, Java and more";
maintainers = [ stdenv.lib.maintainers.rickynils ];
};
}