blob: 123e1bfd42a101ef3b7dbecd7452c2e3d07e7af3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildNpmPackage,
fetchFromGitHub,
versionCheckHook,
}:
buildNpmPackage (finalAttrs: {
pname = "typescript";
version = "5.9.3";
__structuredAttrs = true;
# nixpkgs-update: no auto update
src = fetchFromGitHub {
owner = "microsoft";
repo = "TypeScript";
tag = "v${finalAttrs.version}";
hash = "sha256-OVsvlHtYZhoCtTxdZO6mhVPpIICWEt1Q92Jqrf95jyM=";
};
patches = [
./disable-dprint-dstBundler.patch
];
npmDepsHash = "sha256-4ft5168ru+aGPvZAxASQ4wkjtfNG2e0sNhJTedbiKQA=";
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/tsc";
meta = {
description = "Superset of JavaScript that compiles to clean JavaScript output";
homepage = "https://www.typescriptlang.org/";
changelog = "https://github.com/microsoft/TypeScript/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = [ ];
mainProgram = "tsc";
};
})
|