libepoxy: disable cgl_epoxy_api test

This commit is contained in:
Dmitry Kalinkin 2021-12-11 23:43:39 -05:00
parent c6ad49e2f0
commit 59fdf0e364
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -16,7 +16,7 @@ let
inherit (lib) getLib optional optionalString;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
pname = "libepoxy";
version = "1.5.9";
@ -65,4 +65,10 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ goibhniu erictapen ];
platforms = platforms.unix;
};
}
} // lib.optionalAttrs stdenv.isDarwin {
# cgl_epoxy_api fails in darwin sandbox and on Hydra (because it's headless?)
preCheck = ''
substituteInPlace ../test/meson.build \
--replace "[ 'cgl_epoxy_api', [ 'cgl_epoxy_api.c' ] ]," ""
'';
})