typescript_5: rename from typescript, add alias (#560311)

This commit is contained in:
Weijia Wang
2026-09-05 21:50:06 +00:00
committed by GitHub
3 changed files with 5 additions and 9 deletions

View File

@@ -3,13 +3,15 @@
buildNpmPackage,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "typescript";
version = "5.9.3";
__structuredAttrs = true;
# nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "microsoft";
repo = "TypeScript";
@@ -29,14 +31,6 @@ buildNpmPackage (finalAttrs: {
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/tsc";
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--version-regex=^v([\\d.]+)$"
];
};
};
meta = {
description = "Superset of JavaScript that compiles to clean JavaScript output";
homepage = "https://www.typescriptlang.org/";

View File

@@ -9289,6 +9289,8 @@ with pkgs;
callPackage ../applications/networking/instant-messengers/linphone { }
);
typescript = typescript_5;
buildTypstPackage = callPackage ../build-support/build-typst-package.nix { };
typstPackages = recurseIntoAttrs typst.packages;