gettext: fix windows cross compilation

This commit is contained in:
Marius DAVID 2022-01-06 16:17:34 +01:00 committed by marius david
parent 293c55472a
commit d398bdde95

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, libiconv, xz }:
{ stdenv, lib, fetchurl, fetchpatch, libiconv, xz }:
# Note: this package is used for bootstrapping fetchurl, and thus
# cannot use fetchpatch! All mutable patches (generated by GitHub or
@ -15,7 +15,11 @@ stdenv.mkDerivation rec {
};
patches = [
./absolute-paths.diff
];
] ++ lib.optional stdenv.hostPlatform.isWindows (fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/gettext_formatstring-ruby.patch?h=mingw-w64-gettext&id=e8b577ee3d399518d005e33613f23363a7df07ee";
name = "gettext_formatstring-ruby.patch";
sha256 = "sha256-6SxZObOMkQDxuKJuJY+mQ/VuJJxSeGbf97J8ZZddCV0=";
});
outputs = [ "out" "man" "doc" "info" ];