1{ stdenv, fetchurl, openssl, python2, zlib, libuv, v8, utillinux, http-parser
2, pkgconfig, runCommand, which, libtool, fetchpatch
3, callPackage
4, darwin ? null
5, enableNpm ? true
6}@args:
7
8let
9 nodejs = import ./nodejs.nix args;
10 baseName = if enableNpm then "nodejs" else "nodejs-slim";
11in
12 stdenv.mkDerivation (nodejs // rec {
13 version = "4.8.4";
14 name = "${baseName}-${version}";
15 src = fetchurl {
16 url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.xz";
17 sha256 = "35fe633a48cbe93c79327161d9dc964ac9810f4ceb2ed8628487e6e14a15905b";
18 };
19
20 })