From 0671ce3e0139d2ef1d04a3545d3d4a5ce363bf5b Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Fri, 25 Jul 2025 13:36:34 +0800 Subject: [PATCH] wine: move gettext to nativeBuildInputs --- pkgs/applications/emulators/wine/base.nix | 25 +++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/emulators/wine/base.nix b/pkgs/applications/emulators/wine/base.nix index 6c3467b6e990..5323b2e0a88a 100644 --- a/pkgs/applications/emulators/wine/base.nix +++ b/pkgs/applications/emulators/wine/base.nix @@ -13,6 +13,7 @@ bison, flex, fontforge, + gettext, makeWrapper, pkg-config, nixosTests, @@ -92,16 +93,19 @@ stdenv.mkDerivation ( # Fixes "Compiler cannot create executables" building wineWow with mingwSupport strictDeps = true; - nativeBuildInputs = [ - bison - flex - fontforge - makeWrapper - pkg-config - ] - ++ lib.optionals supportFlags.mingwSupport ( - mingwGccs ++ lib.optional stdenv.hostPlatform.isDarwin setupHookDarwin - ); + nativeBuildInputs = + with supportFlags; + [ + bison + flex + fontforge + makeWrapper + pkg-config + ] + ++ lib.optional gettextSupport gettext + ++ lib.optionals mingwSupport ( + mingwGccs ++ lib.optional stdenv.hostPlatform.isDarwin setupHookDarwin + ); buildInputs = toBuildInputs pkgArches ( with supportFlags; @@ -115,7 +119,6 @@ stdenv.mkDerivation ( ++ lib.optional stdenv.hostPlatform.isLinux pkgs.libcap ++ lib.optional stdenv.hostPlatform.isDarwin pkgs.libinotify-kqueue ++ lib.optional cupsSupport pkgs.cups - ++ lib.optional gettextSupport pkgs.gettext ++ lib.optional dbusSupport pkgs.dbus ++ lib.optional cairoSupport pkgs.cairo ++ lib.optional odbcSupport pkgs.unixODBC