2dd19f6d72
svn path=/nixpkgs/trunk/; revision=28726
26 lines
708 B
Nix
26 lines
708 B
Nix
{ stdenv, fetchurl, openssl, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.5.4";
|
|
name = "nodejs-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
|
|
sha256 = "d32d3af4e3286b383640df857d76c2fcca1a2e2cb85abb484483a0a49d09ae71";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|