Skip to content

Commit

Permalink
nodejs-6_x: 6.2.2 -> 6.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Pflug committed Jul 22, 2016
1 parent e5d048a commit 39cf213
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
16 changes: 10 additions & 6 deletions pkgs/development/web/nodejs/nodejs.nix
@@ -1,17 +1,20 @@
{ stdenv, fetchurl, openssl, python, zlib, libuv, v8, utillinux, http-parser
, pkgconfig, runCommand, which, libtool
, version
, src
, sha256 ? null
, src ? fetchurl { url = "https://nodejs.org/download/release/v${version}/node-v${version}.tar.xz"; inherit sha256; }
, preBuild ? ""
, extraConfigFlags ? []
, extraBuildInputs ? []
, ...
}:

assert stdenv.system != "armv5tel-linux";

let

deps = {
inherit openssl zlib libuv;
deps = {
inherit openssl zlib libuv;
} // (stdenv.lib.optionalAttrs (!stdenv.isDarwin) {
inherit http-parser;
});
Expand All @@ -30,7 +33,7 @@ in stdenv.mkDerivation {

name = "nodejs-${version}";

configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ] ++ extraConfigFlags;
dontDisableStatic = true;
prePatch = ''
patchShebangs .
Expand All @@ -39,9 +42,10 @@ in stdenv.mkDerivation {

patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-xcode.patch ];

buildInputs = [ python which zlib libuv openssl python ]
buildInputs = extraBuildInputs
++ [ python which zlib libuv openssl ]
++ optionals stdenv.isLinux [ utillinux http-parser ]
++ optionals stdenv.isDarwin [ pkgconfig openssl libtool ];
++ optionals stdenv.isDarwin [ pkgconfig libtool ];
setupHook = ./setup-hook.sh;

enableParallelBuilding = true;
Expand Down
17 changes: 10 additions & 7 deletions pkgs/development/web/nodejs/v6.nix
@@ -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
'';
Expand Down

1 comment on commit 39cf213

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gilligan note that your github metadata might be incorrectly configured, since this commit is from an email address that github doesn't recognize

Please sign in to comment.