From 9d06b469733197b3b254022d6ad9743aa2b57550 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 20 Apr 2022 15:08:32 +0200 Subject: [PATCH] dbus: Fix crash when running in nix-shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …that sets long XDG_DATA_DIRS environment variable. --- pkgs/development/libraries/dbus/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index a3c5bbbf70be..6e3a6ed5b305 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -43,6 +43,13 @@ stdenv.mkDerivation rec { url = "https://gitlab.freedesktop.org/dbus/dbus/-/commit/6bfaea0707ba1a7788c4b6d30c18fb094f3a1dd4.patch"; sha256 = "1d8ay55n2ksw5faqx3hsdpfni3xl3gq9hnjl65073xcfnx67x8d2"; }) + + # Fix dbus-daemon crashing when running tests due to long XDG_DATA_DIRS. + # https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/302 + (fetchpatch { + url = "https://gitlab.freedesktop.org/dbus/dbus/-/commit/b551b3e9737958216a1a9d359150a4110a9d0549.patch"; + sha256 = "kOVjlklZzKvBZXmmrE1UiO4XWRoBLViGwdn6/eDH+DY="; + }) ] ++ (lib.optional stdenv.isSunOS ./implement-getgrouplist.patch); postPatch = ''