dbus-test-runner: use regular gettext to fix build

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

Grimmauld 7a0af8fd ea5785e8

Changed files
+19
pkgs
by-name
+7
pkgs/by-name/db/dbus-test-runner/package.nix
···
pkg-config,
python3,
xvfb-run,
}:
stdenv.mkDerivation (finalAttrs: {
···
sha256 = "sha256-4yH19X98SVqpviCBIWzIX6FYHWxCbREpuKCNjQuTFDk=";
};
postPatch = ''
patchShebangs tests/test-wait-outputer
···
nativeBuildInputs = [
autoreconfHook
glib # for autoconf macro, gtester, gdbus
intltool
pkg-config
];
···
pkg-config,
python3,
xvfb-run,
+
gettext,
}:
stdenv.mkDerivation (finalAttrs: {
···
sha256 = "sha256-4yH19X98SVqpviCBIWzIX6FYHWxCbREpuKCNjQuTFDk=";
};
+
patches = [
+
# glib gettext is deprecated and broken, so use regular gettext instead
+
./use-regular-gettext.patch
+
];
+
postPatch = ''
patchShebangs tests/test-wait-outputer
···
nativeBuildInputs = [
autoreconfHook
glib # for autoconf macro, gtester, gdbus
+
gettext
intltool
pkg-config
];
+12
pkgs/by-name/db/dbus-test-runner/use-regular-gettext.patch
···
···
+
--- a/configure.ac
+
+++ b/configure.ac
+
@@ -46,7 +46,8 @@ GETTEXT_PACKAGE=dbus-test-runner
+
AC_SUBST(GETTEXT_PACKAGE)
+
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default gettext domain])
+
+
-AM_GLIB_GNU_GETTEXT
+
+AM_GNU_GETTEXT([external])
+
+AM_GNU_GETTEXT_VERSION([0.21])
+
+
###########################
+
# gcov coverage reporting