Merge #234943: gnugrep: Fix build on Musl

...into staging-next
This commit is contained in:
Vladimír Čunát 2023-05-30 09:41:45 +02:00
commit 5b83182598
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -16,6 +16,11 @@ stdenv.mkDerivation {
hash = "sha256-HbKu3eidDepCsW2VKPiUyNFdrk4ZC1muzHj1qVEnbqs=";
};
# Some gnulib tests fail on Musl: https://github.com/NixOS/nixpkgs/pull/228714
postPatch = if stdenv.hostPlatform.isMusl then ''
sed -i 's:gnulib-tests::g' Makefile.in
'' else null;
nativeCheckInputs = [ perl glibcLocales ];
outputs = [ "out" "info" ]; # the man pages are rather small