New package: sbt 0.12.3, a Scala build tool
This commit is contained in:
parent
1ddfbae86a
commit
a7dbbd2e25
|
@ -0,0 +1,27 @@
|
|||
{ stdenv, fetchurl, writeScript, bash, jre }:
|
||||
|
||||
let
|
||||
|
||||
sbt = writeScript "sbt.sh" ''
|
||||
#!${bash}/bin/bash
|
||||
${jre}/bin/java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled \
|
||||
-XX:MaxPermSize=384M -jar @out@/lib/sbt-launch.jar "$@"
|
||||
'';
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "sbt-${version}";
|
||||
|
||||
version = "0.12.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/${version}/sbt.tgz";
|
||||
sha256 = "154ydaxd6ink5sy4flzpyh47nnhgkxwpzmml8q16am7655fpib08";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib $out/bin
|
||||
mv bin/sbt-launch.jar $out/lib/
|
||||
cp ${sbt} $out/bin/sbt
|
||||
substituteInPlace $out/bin/sbt --replace @out@ $out
|
||||
'';
|
||||
}
|
|
@ -3416,6 +3416,8 @@ let
|
|||
jre = jdk;
|
||||
};
|
||||
|
||||
sbt = callPackage ../development/tools/build-managers/sbt { };
|
||||
|
||||
scons = callPackage ../development/tools/build-managers/scons { };
|
||||
|
||||
simpleBuildTool = callPackage ../development/tools/build-managers/simple-build-tool { };
|
||||
|
|
Loading…
Reference in New Issue