typescript: add package. Closes #2712
Typed superset of JavaScript that compiles to plain JavaScript. http://www.typescriptlang.org/
This commit is contained in:
parent
7a1e2d5a39
commit
93a7cf74b9
@ -43,6 +43,7 @@
|
|||||||
iElectric = "Domen Kozar <domen@dev.si>";
|
iElectric = "Domen Kozar <domen@dev.si>";
|
||||||
iyzsong = "Song Wenwu <iyzsong@gmail.com>";
|
iyzsong = "Song Wenwu <iyzsong@gmail.com>";
|
||||||
jcumming = "Jack Cummings <jack@mudshark.org>";
|
jcumming = "Jack Cummings <jack@mudshark.org>";
|
||||||
|
joamaki = "Jussi Maki <joamaki@gmail.com>";
|
||||||
jwiegley = "John Wiegley <johnw@newartisans.com>";
|
jwiegley = "John Wiegley <johnw@newartisans.com>";
|
||||||
kkallio = "Karn Kallio <tierpluspluslists@gmail.com>";
|
kkallio = "Karn Kallio <tierpluspluslists@gmail.com>";
|
||||||
ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";
|
ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";
|
||||||
|
28
pkgs/development/web/typescript/default.nix
Normal file
28
pkgs/development/web/typescript/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -2141,6 +2141,8 @@ let
|
|||||||
|
|
||||||
txt2man = callPackage ../tools/misc/txt2man { };
|
txt2man = callPackage ../tools/misc/txt2man { };
|
||||||
|
|
||||||
|
typescript = callPackage ../development/web/typescript { };
|
||||||
|
|
||||||
ucl = callPackage ../development/libraries/ucl { };
|
ucl = callPackage ../development/libraries/ucl { };
|
||||||
|
|
||||||
udftools = callPackage ../tools/filesystems/udftools {};
|
udftools = callPackage ../tools/filesystems/udftools {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user