2013-11-05 13:19:11 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
2010-05-08 22:51:47 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sbt-${version}";
|
2015-03-22 18:58:01 +00:00
|
|
|
version = "0.13.8";
|
2013-05-14 23:41:22 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${version}/sbt-launch.jar";
|
2015-03-22 18:58:01 +00:00
|
|
|
sha256 = "0n4ivla8s8ygfnf95dj624nhcyganigf7fy0gamgyf31vw1vnw35";
|
2013-05-14 23:41:22 +01:00
|
|
|
};
|
2010-05-08 22:51:47 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
phases = [ "installPhase" ];
|
2013-05-14 23:41:22 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2013-11-05 13:19:11 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cat > $out/bin/sbt << EOF
|
2014-09-12 16:09:58 +01:00
|
|
|
#! ${stdenv.shell}
|
2013-12-08 18:49:40 +00:00
|
|
|
${jre}/bin/java \$SBT_OPTS -jar ${src} "\$@"
|
2013-05-14 23:41:22 +01:00
|
|
|
EOF
|
2013-11-05 13:19:11 +00:00
|
|
|
chmod +x $out/bin/sbt
|
2013-05-14 23:41:22 +01:00
|
|
|
'';
|
|
|
|
|
2014-06-05 11:36:39 +01:00
|
|
|
meta = {
|
2013-11-05 13:19:11 +00:00
|
|
|
homepage = http://www.scala-sbt.org/;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
description = "A build tool for Scala, Java and more";
|
2014-06-05 11:36:39 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
|
|
|
};
|
2013-05-14 23:41:22 +01:00
|
|
|
}
|