Merge pull request #208275 from rycee/libuv/fix-static-lib2

This commit is contained in:
Artturi 2023-01-28 17:24:48 +02:00 committed by GitHub
commit 31003d18cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkg-config, ApplicationServices, CoreServices }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, autoconf, automake, libtool, pkg-config, ApplicationServices, CoreServices, pkgsStatic }:
stdenv.mkDerivation rec {
version = "1.44.2";
@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-K6v+00basjI32ON27ZjC5spQi/zWCcslDwQwyosq2iY=";
};
patches = [
# Fix tests for statically linked variant upstream PR is
# https://github.com/libuv/libuv/pull/3735
(fetchpatch {
url = "https://github.com/libuv/libuv/commit/9d898acc564351dde74e9ed9865144e5c41f5beb.patch";
sha256 = "sha256-6XsjrseD8a+ny887EKOX0NmHocLMXGf2YL13vkNHUZ0=";
})
];
postPatch = let
toDisable = [
"getnameinfo_basic" "udp_send_hang_loop" # probably network-dependent
@ -70,6 +79,8 @@ stdenv.mkDerivation rec {
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
passthru.tests.static = pkgsStatic.libuv;
meta = with lib; {
description = "A multi-platform support library with a focus on asynchronous I/O";
homepage = "https://libuv.org/";