Skip to content

Commit

Permalink
pkgsCross.mingwW64.gettext: fix build
Browse files Browse the repository at this point in the history
We are unable to build bash so let’s drop it for now on MinGW
(partially reverting 7d03992 there).
This will cause shebangs not to be patched.
  • Loading branch information
jtojnar authored and Artturin committed Jul 26, 2023
1 parent 007173a commit 7bc650e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/libraries/gettext/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bc650e

Please sign in to comment.