2016-10-18 09:08:28 +01:00
|
|
|
{ stdenv, fetchurl, openssl, python2, zlib, libuv, v8, utillinux, http-parser
|
2016-10-13 12:27:18 +01:00
|
|
|
, pkgconfig, runCommand, which, libtool, fetchpatch
|
2016-04-25 15:10:10 +01:00
|
|
|
, callPackage
|
2016-07-22 09:00:26 +01:00
|
|
|
, darwin ? null
|
2016-11-02 16:46:01 +00:00
|
|
|
, enableNpm ? true
|
2016-04-25 15:10:10 +01:00
|
|
|
}@args:
|
|
|
|
|
2016-07-22 09:00:26 +01:00
|
|
|
let
|
2016-11-02 16:46:01 +00:00
|
|
|
nodejs = import ./nodejs.nix args;
|
|
|
|
baseName = if enableNpm then "nodejs" else "nodejs-slim";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (nodejs // rec {
|
2017-07-14 05:31:09 +01:00
|
|
|
version = "6.11.1";
|
2016-11-02 16:46:01 +00:00
|
|
|
name = "${baseName}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz";
|
2017-07-14 05:31:09 +01:00
|
|
|
sha256 = "6f6655b85919aa54cb045a6d69a226849802fcc26491d0db4ce59873e41cc2b8";
|
2016-11-02 16:46:01 +00:00
|
|
|
};
|
|
|
|
})
|