mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
33 lines
800 B
Nix
33 lines
800 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sbt";
|
|
version = "1.3.10";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://piccolo.link/sbt-${version}.tgz"
|
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
|
];
|
|
sha256 = "1023qcbdbwl40l7mgyd3j0ggr6paz1zs2q787ym52dhrcibhcq1h";
|
|
};
|
|
|
|
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 = "https://www.scala-sbt.org/";
|
|
license = licenses.bsd3;
|
|
description = "A build tool for Scala, Java and more";
|
|
maintainers = with maintainers; [ nequissimus ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|