2017-11-26 22:21:06 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
2010-05-08 22:51:47 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sbt";
|
2020-02-07 18:35:39 +00:00
|
|
|
version = "1.3.8";
|
2013-05-14 23:41:22 +01:00
|
|
|
|
2013-11-05 13:19:11 +00:00
|
|
|
src = fetchurl {
|
2017-07-28 16:27:35 +01:00
|
|
|
urls = [
|
2019-09-25 20:08:50 +01:00
|
|
|
"https://piccolo.link/sbt-${version}.tgz"
|
2017-08-11 15:22:20 +01:00
|
|
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
2017-07-28 16:27:35 +01:00
|
|
|
];
|
2020-02-07 18:35:39 +00:00
|
|
|
sha256 = "0pcrbpsvccyxdwc7f8h87rkn0kalar0iypnh3gygw4c0fm4yvci7";
|
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
|
|
|
'';
|
|
|
|
|
2016-07-21 11:29:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://www.scala-sbt.org/;
|
2016-07-21 11:29:14 +01:00
|
|
|
license = licenses.bsd3;
|
2013-11-05 13:19:11 +00:00
|
|
|
description = "A build tool for Scala, Java and more";
|
2019-08-20 14:24:01 +01:00
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
2016-07-21 11:29:14 +01:00
|
|
|
platforms = platforms.unix;
|
2014-06-05 11:36:39 +01:00
|
|
|
};
|
2013-05-14 23:41:22 +01:00
|
|
|
}
|