nixpkgs/pkgs/development/web/nodejs/default.nix
Peter Simons 957397a749 upgraded nodejs
svn path=/nixpkgs/trunk/; revision=30836
2011-12-11 19:38:57 +00:00

31 lines
828 B
Nix

{ stdenv, fetchurl, openssl, python, zlib }:
stdenv.mkDerivation rec {
version = "0.6.5";
name = "nodejs-${version}";
src = fetchurl {
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
sha256 = "72364d240fb61e678897c099df6f2913857c5931aa9b1f44e73e432d4629ca2f";
};
configureFlags = [
"--openssl-includes=${openssl}/include"
"--openssl-libpath=${openssl}/lib"
];
patchPhase = ''
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf}
'';
buildInputs = [ python openssl zlib];
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;
};
}