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
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0=";
|
sha256 = "sha256-wqdZ/kCjwhoWtaiNAM1m869vByHk6mG2OULfuDotVP0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
echo -java-home ${jre.home} >>conf/sbtopts
|
echo -java-home ${jre.home} >>conf/sbtopts
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -25,17 +25,16 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = lib.optionals stdenv.isLinux [ zlib ];
|
buildInputs = lib.optionals stdenv.isLinux [ zlib ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/share/sbt $out/bin
|
mkdir -p $out/share/sbt $out/bin
|
||||||
cp -ra . $out/share/sbt
|
cp -ra . $out/share/sbt
|
||||||
ln -sT ../share/sbt/bin/sbt $out/bin/sbt
|
ln -sT ../share/sbt/bin/sbt $out/bin/sbt
|
||||||
ln -sT ../share/sbt/bin/sbtn-x86_64-${
|
ln -sT ../share/sbt/bin/sbtn-x86_64-${
|
||||||
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
|
if (stdenv.isDarwin) then "apple-darwin" else "pc-linux"
|
||||||
} $out/bin/sbtn
|
} $out/bin/sbtn
|
||||||
'';
|
|
||||||
|
|
||||||
doInstallCheck = true;
|
runHook postInstall
|
||||||
installCheckPhase = ''
|
|
||||||
($out/bin/sbt --offline --version 2>&1 || true) | grep 'getting org.scala-sbt sbt ${version} (this may take some time)'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user