typescript: prefer versionCheckHook rather than testers.testVersion

Actually simplify updating from 5.8.2 to 5.8.3 causes errors in the version check
This commit is contained in:
Kenichi Kamiya
2025-06-05 09:05:31 +05:30
committed by Masum Reza
parent f034044c26
commit c2e3ef65d1
+7 -7
View File
@@ -2,8 +2,7 @@
lib,
buildNpmPackage,
fetchFromGitHub,
testers,
typescript,
versionCheckHook,
}:
buildNpmPackage rec {
@@ -23,11 +22,12 @@ buildNpmPackage rec {
npmDepsHash = "sha256-ytdkxIjAd3UsU90o9IFZa5lGEv39zblBmgTTseVRGKQ=";
passthru.tests = {
version = testers.testVersion {
package = typescript;
};
};
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/tsc";
versionCheckProgramArg = "--version";
meta = with lib; {
description = "Superset of JavaScript that compiles to clean JavaScript output";