nixpkgs/pkgs/development/web/nodejs/v6.nix

22 lines
584 B
Nix
Raw Normal View History

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
, enableNpm ? true
2016-04-25 15:10:10 +01:00
}@args:
2016-07-22 09:00:26 +01:00
let
nodejs = import ./nodejs.nix args;
baseName = if enableNpm then "nodejs" else "nodejs-slim";
in
stdenv.mkDerivation (nodejs // rec {
2016-11-13 23:27:40 +00:00
version = "6.9.1";
name = "${baseName}-${version}";
src = fetchurl {
url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz";
2016-11-13 23:27:40 +00:00
sha256 = "0a87vzb33xdg8w0xi3c605hfav3c9m4ylab1436whz3p0l9qvp8b";
};
})
2016-07-22 09:00:26 +01:00