3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/sbt/default.nix

34 lines
890 B
Nix
Raw Normal View History

2017-11-26 22:21:06 +00:00
{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
2019-01-01 17:38:06 +00:00
version = "1.2.8";
src = fetchurl {
2017-07-28 16:27:35 +01:00
urls = [
"https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz"
2017-08-11 15:22:20 +01:00
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
2017-09-02 17:54:19 +01:00
"https://cocl.us/sbt-${version}.tgz"
2017-07-28 16:27:35 +01:00
];
2019-01-01 17:38:06 +00:00
sha256 = "0n7yghnb1q3lyjpv721znvslk5lwib7y84mxwz66yv8p84jj3fcv";
};
2015-09-25 15:54:35 +01:00
patchPhase = ''
echo -java-home ${jre.home} >>conf/sbtopts
'';
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/
'';
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;
description = "A build tool for Scala, Java and more";
2017-11-26 22:21:06 +00:00
maintainers = with maintainers; [ nequissimus rickynils ];
2016-07-21 11:29:14 +01:00
platforms = platforms.unix;
};
}