mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
typescript_5: rename from typescript, add alias (#560311)
This commit is contained in:
@@ -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/";
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user