34 lines
877 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
2017-09-02 12:54:19 -04:00
version = "1.0.1";
src = fetchurl {
2017-07-28 11:27:35 -04:00
urls = [
"https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz"
2017-08-11 10:22:20 -04:00
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
2017-09-02 12:54:19 -04:00
"https://cocl.us/sbt-${version}.tgz"
2017-07-28 11:27:35 -04:00
];
2017-09-02 12:54:19 -04:00
sha256 = "0nhf7fksgaa8snrhfaac4n6gf29bbv59lfyiv7pr2jhbi5m9js2v";
};
2015-09-25 16:54:35 +02:00
patchPhase = ''
echo -java-home ${jre.home} >>conf/sbtopts
'';
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/
'';
2016-07-21 12:29:14 +02:00
meta = with stdenv.lib; {
homepage = http://www.scala-sbt.org/;
2016-07-21 12:29:14 +02:00
license = licenses.bsd3;
description = "A build tool for Scala, Java and more";
2016-07-21 12:29:14 +02:00
maintainers = with maintainers; [ rickynils ];
platforms = platforms.unix;
};
}