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:
Tim Steinbach 2021-02-26 10:33:00 -05:00
parent daf30a5116
commit 44164e9cd4
No known key found for this signature in database
GPG key ID: 1B40229F19262402

View file

@ -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; {