Skip to content

Commit

Permalink
sbt: 1.0.2 -> 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
NeQuissimus committed Oct 27, 2017
1 parent 2c373d8 commit eae5dfe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkgs/development/tools/build-managers/sbt/default.nix
@@ -1,22 +1,27 @@
{ stdenv, fetchurl, jre }:
{ stdenv, fetchurl, jre, bc }:

stdenv.mkDerivation rec {
name = "sbt-${version}";
version = "1.0.2";
version = "1.0.3";

src = fetchurl {
urls = [
"https://dl.bintray.com/sbt/native-packages/sbt/${version}/${name}.tgz"
"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 ];

This comment has been minimized.

Copy link
@copumpkin

copumpkin Oct 27, 2017

Member

Why is the buildInput needed in addition to the string reference?

This comment has been minimized.

Copy link
@NeQuissimus

NeQuissimus Oct 27, 2017

Author Member

Ooops, it's not, let me fix that

This comment has been minimized.

Copy link
@NeQuissimus

NeQuissimus Oct 27, 2017

Author Member

a924cd2 thank you for pointing this out

This comment has been minimized.

Copy link
@copumpkin

copumpkin Oct 27, 2017

Member

Thank you!


installPhase = ''
mkdir -p $out/share/sbt $out/bin
cp -ra . $out/share/sbt
Expand Down

0 comments on commit eae5dfe

Please sign in to comment.