2011-05-06 00:38:04 +02:00
|
|
|
{ stdenv, fetchurl, openssl, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-07-31 10:49:03 +02:00
|
|
|
version = "0.5.2";
|
2011-05-06 00:38:04 +02:00
|
|
|
name = "nodejs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nodejs.org/dist/node-v${version}.tar.gz";
|
2011-07-31 10:49:03 +02:00
|
|
|
sha256 = "16z16gq5pibw5l830pv5dgx7v2gw6syrddphikcgia92pw4r33qr";
|
2011-05-06 00:38:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf}
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python openssl ];
|
|
|
|
|
2011-07-31 10:49:03 +02:00
|
|
|
meta = with stdenv.lib; {
|
2011-05-06 00:38:04 +02:00
|
|
|
description = "Event-driven I/O framework for the V8 JavaScript engine";
|
|
|
|
homepage = http://nodejs.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|