mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
29 lines
704 B
Nix
29 lines
704 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sbt-${version}";
|
|
version = "0.13.11";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
|
|
sha256 = "19mg2xbc2vbqg33b986zvn7pj05cx106rccdzf9zs2npdnznysm3";
|
|
};
|
|
|
|
patchPhase = ''
|
|
echo -java-home ${jre.home} >>conf/sbtopts
|
|
'';
|
|
|
|
installPhase = ''
|
|
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 ];
|
|
};
|
|
}
|