libuv: fix musl libc dlerror test expectation

Fixes #189180
This commit is contained in:
paretoOptimalDev 2022-09-03 15:50:18 -05:00 committed by Robert Helgesson
parent 99e30309e5
commit cb7cb27083
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

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/";