From 7bc650eccac8ee2d032a5beee6d44ff18527f7b6 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 30 Dec 2022 23:34:50 +0100 Subject: [PATCH] pkgsCross.mingwW64.gettext: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are unable to build bash so let’s drop it for now on MinGW (partially reverting 7d0399279a6949ad4bddd95a4023ab02dc2286be there). This will cause shebangs not to be patched. --- pkgs/development/libraries/gettext/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index a8e8fde96f630..ec929272dea0e 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -54,9 +54,13 @@ stdenv.mkDerivation rec { xz xz.bin ]; - buildInputs = [ bash ] - # HACK, see #10874 (and 14664) - ++ lib.optionals (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) [ libiconv ]; + buildInputs = lib.optionals (!stdenv.hostPlatform.isMinGW) [ + bash + ] + ++ lib.optionals (!stdenv.isLinux && !stdenv.hostPlatform.isCygwin) [ + # HACK, see #10874 (and 14664) + libiconv + ]; setupHooks = [ ../../../build-support/setup-hooks/role.bash