2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
33 lines
882 B
Nix
33 lines
882 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sbt";
|
|
version = "1.2.8";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://dl.bintray.com/sbt/native-packages/sbt/${version}/${pname}-${version}.tgz"
|
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
|
"https://cocl.us/sbt-${version}.tgz"
|
|
];
|
|
sha256 = "0n7yghnb1q3lyjpv721znvslk5lwib7y84mxwz66yv8p84jj3fcv";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|