From be61a2373b9a8af41ae445e40312d09c4f4c3604 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 6 May 2024 13:36:48 -0400 Subject: [PATCH] chore: fix dbus-python --- overrides/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overrides/default.nix b/overrides/default.nix index 503e631..6a4ae25 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -698,7 +698,9 @@ lib.composeManyExtensions [ dbus-python = prev.dbus-python.overridePythonAttrs (old: { outputs = [ "out" "dev" ]; - + nativeBuildInputs = old.nativeBuildInputs or [ ] + ++ lib.optionals (lib.versionAtLeast old.version "1.3") [ pkgs.dbus ]; + } // lib.optionalAttrs (lib.versionOlder old.version "1.3") { postPatch = old.postPatch or "" + '' substituteInPlace ./configure --replace /usr/bin/file ${pkgs.file}/bin/file substituteInPlace ./dbus-python.pc.in --replace 'Cflags: -I''${includedir}' 'Cflags: -I''${includedir}/dbus-1.0'