libuv: disable tests broken on Hydra
They were broken by nix starting to use user namespaces.
This commit is contained in:
parent
2b883c6f56
commit
39e4d93649
@ -1,5 +1,4 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
|
||||||
|
|
||||||
, ApplicationServices, CoreServices }:
|
, ApplicationServices, CoreServices }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -13,10 +12,15 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0gna53fgsjjs38kv1g20xfaalv0fk3xncb6abga3saswrv283hx0";
|
sha256 = "0gna53fgsjjs38kv1g20xfaalv0fk3xncb6abga3saswrv283hx0";
|
||||||
};
|
};
|
||||||
|
|
||||||
# these checks are probably network-dependent
|
postPatch = let
|
||||||
postPatch = lib.optionalString doCheck ''
|
toDisable = [
|
||||||
sed '/getnameinfo_basic/d' -i test/test-list.h
|
"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 ]
|
buildInputs = [ automake autoconf libtool pkgconfig ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user