typescript: add package. Closes #2712

Typed superset of JavaScript that compiles to plain JavaScript.

http://www.typescriptlang.org/
This commit is contained in:
Jussi Maki 2014-05-21 14:58:37 +02:00 committed by Luca Bruno
parent 7a1e2d5a39
commit 93a7cf74b9
3 changed files with 31 additions and 0 deletions

View File

@ -43,6 +43,7 @@
iElectric = "Domen Kozar <domen@dev.si>";
iyzsong = "Song Wenwu <iyzsong@gmail.com>";
jcumming = "Jack Cummings <jack@mudshark.org>";
joamaki = "Jussi Maki <joamaki@gmail.com>";
jwiegley = "John Wiegley <johnw@newartisans.com>";
kkallio = "Karn Kallio <tierpluspluslists@gmail.com>";
ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";

View File

@ -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 ];
};
}

View File

@ -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 {};