sbt-0.12.4: add an older stable version (#23933)

This commit is contained in:
Sergii Paryzhskyi
2017-03-15 21:17:23 +00:00
committed by zimbatm
parent c8ddac7c76
commit 18a272ef75
3 changed files with 32 additions and 1 deletions
@@ -0,0 +1,29 @@
{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
name = "sbt-${version}";
version = "0.12.14";
src = fetchurl {
url = "https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz";
sha256 = "5907af5a3db5e9090024c91e8b6189cd2143841b08c4688542a2efbc9023ac1a";
};
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; [ heel ];
platforms = platforms.unix;
};
}