deno: cleanup install version checks (#519334)
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
protobuf,
|
||||
installShellFiles,
|
||||
makeBinaryWrapper,
|
||||
versionCheckHook,
|
||||
librusty_v8 ? callPackage ./rusty-v8 { },
|
||||
libffi,
|
||||
sqlite,
|
||||
@@ -237,12 +238,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
'';
|
||||
|
||||
doInstallCheck = canExecute;
|
||||
installCheckPhase = lib.optionalString canExecute ''
|
||||
runHook preInstallCheck
|
||||
$out/bin/deno --help
|
||||
$out/bin/deno --version | grep "deno ${finalAttrs.version}"
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru = {
|
||||
updateScript = ./update.sh;
|
||||
|
||||
@@ -71,9 +71,3 @@ in
|
||||
dir = ./read-file;
|
||||
};
|
||||
})
|
||||
// {
|
||||
version = testers.testVersion {
|
||||
package = deno;
|
||||
command = "deno --version";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user