nixpkgs/pkgs/development/web/nodejs/default.nix
Cillian de Roiste 4cc923b4bb Fixing the download url
svn path=/nixpkgs/trunk/; revision=28015
2011-07-31 08:56:09 +00:00

26 lines
696 B
Nix

{ stdenv, fetchurl, openssl, python }:
stdenv.mkDerivation rec {
version = "0.5.2";
name = "nodejs-${version}";
src = fetchurl {
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
sha256 = "16z16gq5pibw5l830pv5dgx7v2gw6syrddphikcgia92pw4r33qr";
};
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;
};
}