diff options
Diffstat (limited to 'pkgs/development/compilers/typescript/default.nix')
-rw-r--r-- | pkgs/development/compilers/typescript/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/compilers/typescript/default.nix b/pkgs/development/compilers/typescript/default.nix new file mode 100644 index 00000000000..15e786543e2 --- /dev/null +++ b/pkgs/development/compilers/typescript/default.nix @@ -0,0 +1,24 @@ +{ lib, buildNpmPackage, fetchFromGitHub }: + +buildNpmPackage rec { + pname = "typescript"; + version = "5.1.3"; + + src = fetchFromGitHub { + owner = "microsoft"; + repo = "TypeScript"; + rev = "v${version}"; + hash = "sha256-c+ZI58Zk6TXwJoWUAXeIMToT+e7Ozdn7hxiDpPjeQJg="; + }; + + npmDepsHash = "sha256-RHiUhhkzkr2Ra3wc1d13gE2WIZL49w7IEFEAZuBDTDI="; + + meta = with lib; { + description = "A superset of JavaScript that compiles to clean JavaScript output"; + homepage = "https://github.com/microsoft/TypeScript"; + changelog = "https://github.com/microsoft/TypeScript/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = [ maintainers.marsam ]; + mainProgram = "tsc"; + }; +} |