lightdm: use regular gettext to fix build

`glib` gettext is deprecated and currently broken.
This fixes the build by using regular gettext instead.

Grimmauld c0e0c035 cdeba33c

+20 -4
+7 -4
pkgs/applications/display-managers/lightdm/default.nix
··· 8 8 plymouth, 9 9 pam, 10 10 pkg-config, 11 - autoconf, 12 - automake, 11 + autoreconfHook, 12 + gettext, 13 13 libtool, 14 14 libxcb, 15 15 glib, ··· 50 50 }; 51 51 52 52 nativeBuildInputs = [ 53 - autoconf 54 - automake 53 + autoreconfHook 54 + gettext 55 55 yelp-tools 56 56 yelp-xsl 57 57 gobject-introspection ··· 88 88 (replaceVars ./fix-paths.patch { 89 89 plymouth = "${plymouth}/bin/plymouth"; 90 90 }) 91 + 92 + # glib gettext is deprecated and broken, so use regular gettext instead 93 + ./use-regular-gettext.patch 91 94 ]; 92 95 93 96 dontWrapQtApps = true;
+13
pkgs/applications/display-managers/lightdm/use-regular-gettext.patch
··· 1 + diff --git a/configure.ac b/configure.ac 2 + index 6f2e706f..6307dd59 100644 3 + --- a/configure.ac 4 + +++ b/configure.ac 5 + @@ -195,6 +195,8 @@ dnl Internationalization 6 + dnl ########################################################################### 7 + 8 + IT_PROG_INTLTOOL(0.35.0) 9 + +AM_GNU_GETTEXT([external]) 10 + +AM_GNU_GETTEXT_VERSION([0.21]) 11 + AC_SUBST(GETTEXT_PACKAGE, lightdm) 12 + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package) 13 +