mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
39e4d93649
They were broken by nix starting to use user namespaces.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
|
, ApplicationServices, CoreServices }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.10.1";
|
|
name = "libuv-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libuv";
|
|
repo = "libuv";
|
|
rev = "v${version}";
|
|
sha256 = "0gna53fgsjjs38kv1g20xfaalv0fk3xncb6abga3saswrv283hx0";
|
|
};
|
|
|
|
postPatch = let
|
|
toDisable = [
|
|
"getnameinfo_basic" # probably network-dependent
|
|
"spawn_setuid_fails" "spawn_setgid_fails" "fs_chown" # user namespaces
|
|
];
|
|
tdRegexp = lib.concatStringsSep "\\|" toDisable;
|
|
in lib.optionalString doCheck ''
|
|
sed '/${tdRegexp}/d' -i test/test-list.h
|
|
'';
|
|
|
|
buildInputs = [ automake autoconf libtool pkgconfig ]
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
|
|
|
|
preConfigure = ''
|
|
LIBTOOLIZE=libtoolize ./autogen.sh
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|