sbt: Remove installCheck
The check is very fragile. We cannot replace it with different logic as that would require network access. `
This commit is contained in:
parent
daf30a5116
commit
44164e9cd4
1 changed files with 4 additions and 5 deletions
|
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
echo -java-home ${jre.home} >>conf/sbtopts
|
||||
'';
|
||||
|
||||
|
@ -25,17 +25,16 @@ stdenv.mkDerivation rec {
|
|||
buildInputs = lib.optionals stdenv.isLinux [ zlib ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/sbt $out/bin
|
||||
cp -ra . $out/share/sbt
|
||||
ln -sT ../share/sbt/bin/sbt $out/bin/sbt
|
||||
ln -sT ../share/sbt/bin/sbtn-x86_64-${
|
||||
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
|
||||
} $out/bin/sbtn
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
($out/bin/sbt --offline --version 2>&1 || true) | grep 'getting org.scala-sbt sbt ${version} (this may take some time)'
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue