Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 22 lines 660 B view raw
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 = "8.6.0"; 14 name = "${baseName}-${version}"; 15 src = fetchurl { 16 url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz"; 17 sha256 = "14vy9xnyfz44j460hkrx423g7acpzzyqlxiv6sgmna9qj8872w5i"; 18 }; 19 20 patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-xcode-v7.patch ]; 21 }) 22