glib: fix windows compilation

This commit is contained in:
Marius DAVID 2022-01-06 16:18:37 +01:00 committed by marius david
parent d398bdde95
commit 3cd7ed9ca9

View File

@ -93,6 +93,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libelf setupHook pcre
] ++ optionals (!stdenv.hostPlatform.isWindows) [
bash gnum4 # install glib-gettextize and m4 macros for other apps to use
] ++ optionals stdenv.isLinux [
libselinux
@ -143,6 +144,9 @@ stdenv.mkDerivation rec {
patchShebangs glib/gen-unicode-tables.pl
patchShebangs tests/gen-casefold-txt.py
patchShebangs tests/gen-casemap-txt.py
'' + lib.optionalString stdenv.hostPlatform.isWindows ''
substituteInPlace gio/win32/meson.build \
--replace "libintl, " ""
'';
DETERMINISTIC_BUILD = 1;