Skip to content

Commit

Permalink
Merge #234943: gnugrep: Fix build on Musl
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed May 30, 2023
2 parents 036bb8f + 4e6bb70 commit 5b83182
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/tools/text/gnugrep/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5b83182

Please sign in to comment.