upgraded nodejs
svn path=/nixpkgs/trunk/; revision=30836
This commit is contained in:
parent
80371eb91e
commit
957397a749
@ -1,19 +1,24 @@
|
|||||||
{ stdenv, fetchurl, openssl, python }:
|
{ stdenv, fetchurl, openssl, python, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.5.4";
|
version = "0.6.5";
|
||||||
name = "nodejs-${version}";
|
name = "nodejs-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
|
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
|
||||||
sha256 = "d32d3af4e3286b383640df857d76c2fcca1a2e2cb85abb484483a0a49d09ae71";
|
sha256 = "72364d240fb61e678897c099df6f2913857c5931aa9b1f44e73e432d4629ca2f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--openssl-includes=${openssl}/include"
|
||||||
|
"--openssl-libpath=${openssl}/lib"
|
||||||
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf}
|
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ python openssl ];
|
buildInputs = [ python openssl zlib];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Event-driven I/O framework for the V8 JavaScript engine";
|
description = "Event-driven I/O framework for the V8 JavaScript engine";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user