2013-11-05 14:19:11 +01:00
|
|
|
{ stdenv, fetchurl, jre }:
|
2010-05-08 23:51:47 +02:00
|
|
|
|
2013-11-05 14:19:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sbt-${version}";
|
2016-10-28 20:08:20 +02:00
|
|
|
version = "0.13.13";
|
2013-05-15 00:41:22 +02:00
|
|
|
|
2013-11-05 14:19:11 +01:00
|
|
|
src = fetchurl {
|
2015-09-25 16:54:35 +02:00
|
|
|
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
|
2016-10-28 20:08:20 +02:00
|
|
|
sha256 = "0ygrz92qkzasj6fps1bjg7wlgl69867jjjc37yjadib0l8hkvl20";
|
2013-05-15 00:41:22 +02:00
|
|
|
};
|
2010-05-08 23:51:47 +02:00
|
|
|
|
2015-09-25 16:54:35 +02:00
|
|
|
patchPhase = ''
|
|
|
|
echo -java-home ${jre.home} >>conf/sbtopts
|
|
|
|
'';
|
2013-05-15 00:41:22 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2015-09-25 16:54:35 +02:00
|
|
|
mkdir -p $out/share/sbt $out/bin
|
|
|
|
cp -ra . $out/share/sbt
|
|
|
|
ln -s $out/share/sbt/bin/sbt $out/bin/
|
2013-05-15 00:41:22 +02:00
|
|
|
'';
|
|
|
|
|
2016-07-21 12:29:14 +02:00
|
|
|
meta = with stdenv.lib; {
|
2013-11-05 14:19:11 +01:00
|
|
|
homepage = http://www.scala-sbt.org/;
|
2016-07-21 12:29:14 +02:00
|
|
|
license = licenses.bsd3;
|
2013-11-05 14:19:11 +01:00
|
|
|
description = "A build tool for Scala, Java and more";
|
2016-07-21 12:29:14 +02:00
|
|
|
maintainers = with maintainers; [ rickynils ];
|
|
|
|
platforms = platforms.unix;
|
2014-06-05 12:36:39 +02:00
|
|
|
};
|
2013-05-15 00:41:22 +02:00
|
|
|
}
|