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

33 lines
800 B
Nix
Raw Normal View History

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