mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
4292c633b4
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libuv/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 1.20.0 with grep in /nix/store/r6j9x782s7pl6a5055icynmzk1991imw-libuv-1.20.0 - directory tree listing: https://gist.github.com/cff77ff2c13f732c2027bb680a833c5e
51 lines
1.7 KiB
Nix
51 lines
1.7 KiB
Nix
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
|
, ApplicationServices, CoreServices }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.20.0";
|
|
name = "libuv-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libuv";
|
|
repo = "libuv";
|
|
rev = "v${version}";
|
|
sha256 = "0bjxny5bjl0qy978i9n2b96vd72h9dd7ghylvhfsi1aqfwc0s1qz";
|
|
};
|
|
|
|
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 ];
|
|
|
|
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;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|