mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "sbt-${version}";
|
name = "sbt-${version}";
|
||||||
version = "1.0.2";
|
version = "1.0.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
@ -10,13 +10,18 @@ stdenv.mkDerivation rec {
|
|||||||
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
"https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz"
|
||||||
"https://cocl.us/sbt-${version}.tgz"
|
"https://cocl.us/sbt-${version}.tgz"
|
||||||
];
|
];
|
||||||
sha256 = "1w1f6nsdq3inxhqhy69mgljfjr51n1v1s8i51gcg11rd2bc67w63";
|
sha256 = "041cv25gxqsi3rlglw5d8aqgdzb6y5ak3f52dwqvzrrj854vyx13";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
echo -java-home ${jre.home} >>conf/sbtopts
|
echo -java-home ${jre.home} >>conf/sbtopts
|
||||||
|
|
||||||
|
substituteInPlace bin/sbt-launch-lib.bash \
|
||||||
|
--replace "| bc)" "| ${bc}/bin/bc)"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ bc ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/sbt $out/bin
|
mkdir -p $out/share/sbt $out/bin
|
||||||
cp -ra . $out/share/sbt
|
cp -ra . $out/share/sbt
|
||||||
|
Loading…
Reference in New Issue
Block a user