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

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