nixpkgs/pkgs/development/tools/build-managers/sbt/default.nix

33 lines
797 B
Nix
Raw Normal View History

2017-11-26 22:21:06 +00:00
{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
pname = "sbt";
2019-11-29 15:36:54 +00:00
version = "1.3.4";
src = fetchurl {
2017-07-28 15:27:35 +00:00
urls = [
2019-09-25 19:08:50 +00:00
"https://piccolo.link/sbt-${version}.tgz"
2017-08-11 14:22:20 +00:00
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
2017-07-28 15:27:35 +00:00
];
2019-11-29 15:36:54 +00:00
sha256 = "0bz6jj7jiwxd35xw9l1jbd846r0129pwgdi8m6dxwb8zybj73k2m";
};
2015-09-25 14:54:35 +00:00
patchPhase = ''
echo -java-home ${jre.home} >>conf/sbtopts
'';
installPhase = ''
2015-09-25 14:54:35 +00: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 10:29:14 +00:00
meta = with stdenv.lib; {
2018-06-27 20:12:57 +00:00
homepage = https://www.scala-sbt.org/;
2016-07-21 10:29:14 +00:00
license = licenses.bsd3;
description = "A build tool for Scala, Java and more";
maintainers = with maintainers; [ nequissimus ];
2016-07-21 10:29:14 +00:00
platforms = platforms.unix;
};
}