sbt: 1.0.2 -> 1.0.3
This commit is contained in:
parent
2c373d818d
commit
eae5dfe134
|
@ -1,8 +1,8 @@
|
|||
{ stdenv, fetchurl, jre }:
|
||||
{ stdenv, fetchurl, jre, bc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "sbt-${version}";
|
||||
version = "1.0.2";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
|
@ -10,13 +10,18 @@ stdenv.mkDerivation rec {
|
|||
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
||||
"https://cocl.us/sbt-${version}.tgz"
|
||||
];
|
||||
sha256 = "1w1f6nsdq3inxhqhy69mgljfjr51n1v1s8i51gcg11rd2bc67w63";
|
||||
sha256 = "041cv25gxqsi3rlglw5d8aqgdzb6y5ak3f52dwqvzrrj854vyx13";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
echo -java-home ${jre.home} >>conf/sbtopts
|
||||
|
||||
substituteInPlace bin/sbt-launch-lib.bash \
|
||||
--replace "| bc)" "| ${bc}/bin/bc)"
|
||||
'';
|
||||
|
||||
buildInputs = [ bc ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/sbt $out/bin
|
||||
cp -ra . $out/share/sbt
|
||||
|
|
Loading…
Reference in a new issue