mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
34 lines
889 B
Nix
34 lines
889 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sbt-${version}";
|
|
version = "1.1.0";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz"
|
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
|
"https://cocl.us/sbt-${version}.tgz"
|
|
];
|
|
sha256 = "1mz2aiwb3ha8dnx9fzbykz1y5ax01l2x6xml956fs1vm555v534x";
|
|
};
|
|
|
|
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 = with stdenv.lib; {
|
|
homepage = http://www.scala-sbt.org/;
|
|
license = licenses.bsd3;
|
|
description = "A build tool for Scala, Java and more";
|
|
maintainers = with maintainers; [ nequissimus rickynils ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|