Shared libuv in io.js and Node.js

This commit is contained in:
Valérian Galliat 2015-02-22 12:41:33 +01:00
parent ef86e3c1b5
commit 43f02f27a0
3 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, nightly ? false }:
{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv, nightly ? false }:
let
version = if nightly then "1.2.1-nightly20150213f0296933f8" else "1.2.0";
@ -19,9 +19,9 @@ in stdenv.mkDerivation {
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure
'';
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" ];
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" "--shared-libuv" ];
buildInputs = [ python openssl http-parser zlib ] ++ (optional stdenv.isLinux utillinux);
buildInputs = [ python openssl http-parser zlib libuv ] ++ (optional stdenv.isLinux utillinux);
setupHook = ../nodejs/setup-hook.sh;
meta = {

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, openssl, python, zlib, v8, utillinux, http-parser
{ stdenv, fetchurl, openssl, python, zlib, libuv, v8, utillinux, http-parser
, pkgconfig, runCommand, which, unstableVersion ? false
}:
@ -10,9 +10,8 @@ let
version = if unstableVersion then "0.11.13" else "0.12.0";
# !!! Should we also do shared libuv?
deps = {
inherit openssl zlib;
inherit openssl zlib libuv;
# 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

View File

@ -1724,15 +1724,15 @@ let
ninka = callPackage ../development/tools/misc/ninka { };
nodejs = callPackage ../development/web/nodejs { };
nodejs-unstable = callPackage ../development/web/nodejs { unstableVersion = true; };
nodejs = callPackage ../development/web/nodejs { libuv = libuvVersions.v1_2_0; };
nodejs-unstable = callPackage ../development/web/nodejs { libuv = libuvVersions.v1_2_0; unstableVersion = true; };
nodePackages = recurseIntoAttrs (
callPackage ./node-packages.nix { self = nodePackages; }
);
iojs = callPackage ../development/web/iojs { };
iojs-nightly = callPackage ../development/web/iojs { nightly = true; };
iojs = callPackage ../development/web/iojs { libuv = libuvVersions.v1_4_0; };
iojs-nightly = callPackage ../development/web/iojs { libuv = libuvVersions.v1_4_0; nightly = true; };
iojsPackages = recurseIntoAttrs (
callPackage ./node-packages.nix { self = iojsPackages; nodejs = iojs; }