From 28096838d06e0890f0012a29835c9ed6a4189bfb Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Thu, 5 May 2011 22:38:04 +0000 Subject: [PATCH] Adding node.js, a javascript web development platform svn path=/nixpkgs/trunk/; revision=27168 --- pkgs/development/web/nodejs/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/web/nodejs/default.nix diff --git a/pkgs/development/web/nodejs/default.nix b/pkgs/development/web/nodejs/default.nix new file mode 100644 index 000000000000..d6c337e306f2 --- /dev/null +++ b/pkgs/development/web/nodejs/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, openssl, python }: + +stdenv.mkDerivation rec { + version = "0.4.7"; + name = "nodejs-${version}"; + + src = fetchurl { + url = "http://nodejs.org/dist/node-v${version}.tar.gz"; + sha256 = "1vixb54an9zp2zvc0z8pn6r6bv823wwy9m06xr4zzss9apw5yh2w"; + }; + + patchPhase = '' + sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf} + ''; + + buildInputs = [ python openssl ]; + + meta = with stdenv.lib; { + description = "Event-driven I/O framework for the V8 JavaScript engine"; + homepage = http://nodejs.org; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52aed19148c7..169c4e3b74f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -862,6 +862,8 @@ let most = callPackage ../tools/misc/most { }; + nodejs = callPackage ../development/web/nodejs {}; + lftp = callPackage ../tools/networking/lftp { }; libtorrent = callPackage ../tools/networking/p2p/libtorrent { };