From 4e6bb700988d0f7350263981d2be5a8ce68d8f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Tue, 30 May 2023 08:15:24 +0200 Subject: [PATCH] gnugrep: Fix build on Musl --- pkgs/tools/text/gnugrep/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index a4ee316937af..75c6f6950737 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