From 93a7cf74b938598447343c49d80392c2ca607cba Mon Sep 17 00:00:00 2001 From: Jussi Maki Date: Wed, 21 May 2014 14:58:37 +0200 Subject: [PATCH] typescript: add package. Closes #2712 Typed superset of JavaScript that compiles to plain JavaScript. http://www.typescriptlang.org/ --- lib/maintainers.nix | 1 + pkgs/development/web/typescript/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 pkgs/development/web/typescript/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 80d0bed23dce..fc94de6d0866 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -43,6 +43,7 @@ iElectric = "Domen Kozar "; iyzsong = "Song Wenwu "; jcumming = "Jack Cummings "; + joamaki = "Jussi Maki "; jwiegley = "John Wiegley "; kkallio = "Karn Kallio "; ktosiek = "Tomasz Kontusz "; diff --git a/pkgs/development/web/typescript/default.nix b/pkgs/development/web/typescript/default.nix new file mode 100644 index 000000000000..07b75e1350ea --- /dev/null +++ b/pkgs/development/web/typescript/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, nodejs }: + +stdenv.mkDerivation rec { + version = "0.9.1-1"; + name = "typescript-${version}"; + + src = fetchurl { + url = "http://registry.npmjs.org/typescript/-/${name}.tgz"; + sha256 = "0fgfp58hki0g1255lvv17pdk77m1bf7dbwzb0vdb91mhp2masc6q"; + }; + + propagatedBuildInputs = [ nodejs ]; + + installPhase = '' + mkdir -p $out + cp -r * $out + chmod a+x $out/bin/tsc + ''; + + meta = with stdenv.lib; { + description = "TypeScript is a language for application scale JavaScript development"; + longDescription = '' + TypeScript is a language for application scale JavaScript development''; + homepage = http://nodejs.org; + license = licenses.asl20; + maintainers = [ maintainers.joamaki ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 70cab717c169..d0e0b341e990 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2141,6 +2141,8 @@ let txt2man = callPackage ../tools/misc/txt2man { }; + typescript = callPackage ../development/web/typescript { }; + ucl = callPackage ../development/libraries/ucl { }; udftools = callPackage ../tools/filesystems/udftools {};