deno: cleanup install version checks

Remove redundant version test and replace the manual installCheckPhase
with versionCheckHook.
This commit is contained in:
Mynacol
2026-05-12 13:59:00 +00:00
parent bba5bbe19d
commit 7eafdd491c
2 changed files with 2 additions and 12 deletions
+2 -6
View File
@@ -9,6 +9,7 @@
protobuf,
installShellFiles,
makeBinaryWrapper,
versionCheckHook,
librusty_v8 ? callPackage ./rusty-v8 { },
libffi,
sqlite,
@@ -234,12 +235,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;
-6
View File
@@ -71,9 +71,3 @@ in
dir = ./read-file;
};
})
// {
version = testers.testVersion {
package = deno;
command = "deno --version";
};
}