diff options
author | Janne Heß <janne@hess.ooo> | 2023-05-30 08:15:24 +0200 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2023-05-30 08:53:32 +0200 |
commit | 4e6bb700988d0f7350263981d2be5a8ce68d8f26 (patch) | |
tree | 0d93bb536f5fa3d14370ff924856a67682ec3278 /pkgs/tools/text/gnugrep/default.nix | |
parent | 2cc7256a108c21b7660500f02f8fbaec3d3fd50d (diff) |
gnugrep: Fix build on Musl
Diffstat (limited to 'pkgs/tools/text/gnugrep/default.nix')
-rw-r--r-- | pkgs/tools/text/gnugrep/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index a4ee316937af4..75c6f69507370 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -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 |