summary refs log tree commit diff
path: root/pkgs/development/web/nodejs/v4.nix
blob: f0a505a683a8f305cf98833fa2d50e2e5e425fb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ stdenv, fetchurl, openssl, python2, zlib, libuv, v8, utillinux, http-parser
, pkgconfig, runCommand, which, libtool
, callPackage
}@args:

import ./nodejs.nix (args // rec {
  version = "4.6.0";
  src = fetchurl {
    url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.xz";
    sha256 = "1566q1kkv8j30fgqx8sm2h8323f38wwpa1hfb10gr6z46jyhv4a2";
  };

  preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
    substituteInPlace src/util.h \
      --replace "tr1/type_traits" "type_traits"
  '';
})