gnugrep: disable gnulib tests on x86_64-darwin as well

This commit is contained in:
Sergei Trofimovich
2023-06-06 20:10:06 +01:00
parent e27de00517
commit fd76e6c2ab
+4 -2
View File
@@ -16,8 +16,10 @@ stdenv.mkDerivation {
hash = "sha256-HbKu3eidDepCsW2VKPiUyNFdrk4ZC1muzHj1qVEnbqs=";
};
# Some gnulib tests fail on Musl: https://github.com/NixOS/nixpkgs/pull/228714
postPatch = if stdenv.hostPlatform.isMusl then ''
# Some gnulib tests fail
# - on Musl: https://github.com/NixOS/nixpkgs/pull/228714
# - on x86_64-darwin: https://github.com/NixOS/nixpkgs/pull/228714#issuecomment-1576826330
postPatch = if stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) then ''
sed -i 's:gnulib-tests::g' Makefile.in
'' else null;