nodejs-6_x: 6.2.2 -> 6.3.1

This commit is contained in:
Tobias Pflug
2016-07-22 10:00:26 +02:00
parent e5d048ad9a
commit 39cf213e2b
2 changed files with 20 additions and 13 deletions

View File

@@ -1,15 +1,18 @@
{ stdenv, fetchurl, openssl, python, zlib, libuv, v8, utillinux, http-parser
, pkgconfig, runCommand, which, libtool
, callPackage
, darwin ? null
}@args:
import ./nodejs.nix (args // rec {
version = "6.2.2";
src = fetchurl {
url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz";
sha256 = "2dfeeddba750b52a528b38a1c31e35c1fb40b19cf28fbf430c3c8c7a6517005a";
};
preBuild = stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") ''
let
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
in import ./nodejs.nix (args // rec {
version = "6.3.1";
sha256 = "06ran2ccfxkwyk6w4wikd7qws286952lbx93pqaygmbh9f0q9rbg";
extraBuildInputs = stdenv.lib.optionals stdenv.isDarwin
[ CoreServices ApplicationServices ];
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i -e "s|tr1/type_traits|type_traits|g" \
-e "s|std::tr1|std|" src/util.h
'';