From 02b507e0dc0509b8934888a31103ad6d5c70c97c Mon Sep 17 00:00:00 2001 From: dadada Date: Wed, 1 Dec 2021 21:46:18 +0100 Subject: [PATCH] dbus-python: fix configure dependency on python3 See https://github.com/NixOS/nixpkgs/pull/144095#pullrequestreview-804181903 --- pkgs/development/python-modules/dbus/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/dbus/default.nix b/pkgs/development/python-modules/dbus/default.nix index 23fcf511187ec..599c911b9990d 100644 --- a/pkgs/development/python-modules/dbus/default.nix +++ b/pkgs/development/python-modules/dbus/default.nix @@ -23,6 +23,10 @@ buildPythonPackage rec { MACOSX_DEPLOYMENT_TARGET=10.16 '' else null; + configureFlags = [ + "PYTHON_VERSION=${lib.versions.major python.version}" + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ dbus dbus-glib ] # My guess why it's sometimes trying to -lncurses.