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

30 lines
737 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
2016-07-21 03:29:14 -07:00
version = "0.13.12";
src = fetchurl {
2015-09-25 07:54:35 -07:00
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
2016-07-21 03:29:14 -07:00
sha256 = "1pq3c9nhxbdpx5csmpvjv93nz2z04n2gzzwyd7sllaplqgwk00i8";
};
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; {
homepage = http://www.scala-sbt.org/;
2016-07-21 03:29:14 -07:00
license = licenses.bsd3;
description = "A build tool for Scala, Java and more";
2016-07-21 03:29:14 -07:00
maintainers = with maintainers; [ rickynils ];
platforms = platforms.unix;
};
}