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

29 lines
704 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
2016-03-03 15:09:00 +00:00
version = "0.13.11";
src = fetchurl {
2015-09-25 15:54:35 +01:00
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
2016-03-03 15:09:00 +00:00
sha256 = "19mg2xbc2vbqg33b986zvn7pj05cx106rccdzf9zs2npdnznysm3";
};
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/
'';
meta = {
homepage = http://www.scala-sbt.org/;
license = stdenv.lib.licenses.bsd3;
description = "A build tool for Scala, Java and more";
maintainers = [ stdenv.lib.maintainers.rickynils ];
};
}