1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libuv/default.nix

47 lines
1.3 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 {
version = "1.11.0";
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}";
sha256 = "02sm7f3l0shpfz25b77q2jjvlypc1mmz4zpzfgfmiplhgxxaa6la";
};
postPatch = let
toDisable = [
"getnameinfo_basic" # probably network-dependent
"spawn_setuid_fails" "spawn_setgid_fails" "fs_chown" # user namespaces
"getaddrinfo_fail" "getaddrinfo_fail_sync"
]
# sometimes: timeout (no output)
++ stdenv.lib.optional stdenv.isDarwin "process_title";
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;
doCheck = true;
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
}