1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/development/libraries/libuv/default.nix

51 lines
1.7 KiB
Nix
Raw Normal View History

2015-09-28 17:16:05 +01:00
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
2015-06-21 08:56:48 +01:00
, ApplicationServices, CoreServices }:
2016-04-25 15:04:22 +01:00
stdenv.mkDerivation rec {
2017-09-18 12:50:56 +01:00
version = "1.14.1";
2016-04-25 15:04:22 +01:00
name = "libuv-${version}";
2016-04-25 15:04:22 +01:00
src = fetchFromGitHub {
owner = "libuv";
repo = "libuv";
rev = "v${version}";
2017-09-18 12:50:56 +01:00
sha256 = "1121qvnvpcabq1bl2k41jq8r2hn2x123csiaf7s9vrq66bbxgfdx";
};
postPatch = let
toDisable = [
"getnameinfo_basic" "udp_send_hang_loop" # probably network-dependent
"spawn_setuid_fails" "spawn_setgid_fails" "fs_chown" # user namespaces
"getaddrinfo_fail" "getaddrinfo_fail_sync"
"threadpool_multiple_event_loops" # times out on slow machines
]
# sometimes: timeout (no output), failed uv_listen
++ stdenv.lib.optionals stdenv.isDarwin [ "process_title" "emfile" ];
tdRegexp = lib.concatStringsSep "\\|" toDisable;
in lib.optionalString doCheck ''
sed '/${tdRegexp}/d' -i test/test-list.h
'';
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
2016-04-25 15:04:22 +01:00
preConfigure = ''
LIBTOOLIZE=libtoolize ./autogen.sh
'';
enableParallelBuilding = true;
# These should be turned back on, but see https://github.com/NixOS/nixpkgs/issues/23651
# For now the tests are just breaking large swaths of the nixpkgs binary cache for Darwin,
# and I'd rather have everything else work at all than have stronger assurance here.
doCheck = !stdenv.isDarwin;
2016-04-25 15:04:22 +01:00
meta = with lib; {
description = "A multi-platform support library with a focus on asynchronous I/O";
homepage = https://github.com/libuv/libuv;
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; linux ++ darwin;
};
2016-04-25 15:04:22 +01:00
}