Unverified Commit f5ab9369 authored by Ben Siraphob's avatar Ben Siraphob
Browse files

gnugrep: disable gnulib tests to fix Darwin cross

parent b4012f46
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -38,8 +38,9 @@ stdenv.mkDerivation {
  # 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
  # - when building on Darwin (cross-compilation): test-nl_langinfo-mt fails
  postPatch =
    if stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) then
    if stdenv.hostPlatform.isMusl || stdenv.buildPlatform.isDarwin then
      ''
        sed -i 's:gnulib-tests::g' Makefile.in
      ''