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 = "6.11.1";
14 name = "${baseName}-${version}";
15 src = fetchurl {
16 url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz";
17 sha256 = "6f6655b85919aa54cb045a6d69a226849802fcc26491d0db4ce59873e41cc2b8";
18 };
19 })