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:
committed by
Masum Reza
parent
f034044c26
commit
c2e3ef65d1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user