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-08-12 06:45:25 +01:00
|
|
|
version = "0.13.9";
|
2013-05-14 23:41:22 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
src = fetchurl {
|
2015-09-25 15:54:35 +01:00
|
|
|
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
|
|
|
|
sha256 = "148f2801f2993773de6f8859fe0e6520fcabe649d66bb316e13aff8b2fd7f504";
|
2013-05-14 23:41:22 +01:00
|
|
|
};
|
2010-05-08 22:51:47 +01:00
|
|
|
|
2015-09-25 15:54:35 +01:00
|
|
|
patchPhase = ''
|
|
|
|
echo -java-home ${jre.home} >>conf/sbtopts
|
|
|
|
'';
|
2013-05-14 23:41:22 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-09-25 15:54:35 +01:00
|
|
|
mkdir -p $out/share/sbt $out/bin
|
|
|
|
cp -ra . $out/share/sbt
|
|
|
|
ln -s $out/share/sbt/bin/sbt $out/bin/
|
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
|
|
|
}
|