2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sbt";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.3.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
|
|
|
"https://piccolo.link/sbt-${version}.tgz"
|
|
|
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "08mx84kzpm750zjxm225nh9wqm7js5y2k6hgb8xw3n574zg58hc5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
echo -java-home ${jre.home} >>conf/sbtopts
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/sbt $out/bin
|
|
|
|
cp -ra . $out/share/sbt
|
|
|
|
ln -s $out/share/sbt/bin/sbt $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://www.scala-sbt.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
description = "A build tool for Scala, Java and more";
|
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|