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