about summary refs log tree commit diff
path: root/pkgs/development/web
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2014-11-10 10:03:52 +0100
committerLuca Bruno <lucabru@src.gnome.org>2014-11-10 10:03:52 +0100
commit6af0d6974fbbf60c9e43d5bd563e4df0570a61b2 (patch)
tree62b8785527061f9b872682c6746d9017aea8e448 /pkgs/development/web
parent4030ab3ba4988cc96d22f6bf6963cf3727aa2e41 (diff)
parent9e3137ddf069218f875b385eef27d00d7c0597e1 (diff)
downloadnixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.gz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.bz2
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.lz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.xz
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.tar.zst
nixlib-6af0d6974fbbf60c9e43d5bd563e4df0570a61b2.zip
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/development/web')
-rw-r--r--pkgs/development/web/nodejs/default.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/web/nodejs/default.nix b/pkgs/development/web/nodejs/default.nix
index 3356a04729ee..f796567b5556 100644
--- a/pkgs/development/web/nodejs/default.nix
+++ b/pkgs/development/web/nodejs/default.nix
@@ -1,4 +1,6 @@
-{ stdenv, fetchurl, openssl, python, zlib, v8, utillinux, http-parser, c-ares, pkgconfig, runCommand, which }:
+{ stdenv, fetchurl, openssl, python, zlib, v8, utillinux, http-parser, c-ares
+, pkgconfig, runCommand, which, unstableVersion ? false 
+}:
 
 let
   dtrace = runCommand "dtrace-native" {} ''
@@ -6,19 +8,20 @@ let
     ln -sv /usr/sbin/dtrace $out/bin
   '';
 
-  version = "0.10.32";
+  version = if unstableVersion then "0.11.13" else "0.10.32";
 
   # !!! Should we also do shared libuv?
   deps = {
     inherit openssl zlib;
-    cares = c-ares;
 
     # disabled system v8 because v8 3.14 no longer receives security fixes
     # we fall back to nodejs' internal v8 copy which receives backports for now
     # inherit v8
-  } // stdenv.lib.optionalAttrs (!stdenv.isDarwin) {
+  } // (stdenv.lib.optionalAttrs (!stdenv.isDarwin) {
     inherit http-parser;
-  };
+  })
+  # Node 0.11 has patched c-ares, won't compile with system's version
+  // (if unstableVersion then {} else { cares = c-ares; });
 
   sharedConfigureFlags = name: [
     "--shared-${name}"
@@ -32,7 +35,9 @@ in stdenv.mkDerivation {
 
   src = fetchurl {
     url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.gz";
-    sha256 = "040g0gh2nl593ml1fcqp68vxa5kj7aiw1nqirda1c69d7l70s4n2";
+    sha256 = if unstableVersion
+             then "1642zj3sajhqflfhb8fsvy84w9mm85wagm8w8300gydd2q6fkmhm"
+             else "040g0gh2nl593ml1fcqp68vxa5kj7aiw1nqirda1c69d7l70s4n2";
   };
 
   configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps);