diff options
author | Lassulus <github@lassul.us> | 2022-04-20 23:18:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 23:18:53 +0100 |
commit | a50861d1d6454ab420c2924be100ff536a14a508 (patch) | |
tree | 7de010bf7e3656e522f98a3ff6e74c32c88ba28c /pkgs/os-specific/linux/wpa_supplicant/default.nix | |
parent | 4730df7eca94f26cfe16e1ee7369844efde092ba (diff) | |
parent | e357ea6b01b509a48f1e67643ff74c1d8d4e8a08 (diff) |
Merge pull request #148811 from KAction/fix/wpa_supplicant
wpa_supplicant: fix withDbus=false build
Diffstat (limited to 'pkgs/os-specific/linux/wpa_supplicant/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/wpa_supplicant/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index 1d58d47cf6635..eb345e24b7e12 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -72,6 +72,16 @@ stdenv.mkDerivation rec { CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y + '' + # Upstream uses conditionals based on ifdef, so opposite of =y is + # not =n, as one may expect, but undefine. People, why don't you + # just use KBuild and stop reinventing the wheel? + # + # This config is sourced into makefile. + + optionalString (!withDbus) '' + undefine CONFIG_CTRL_IFACE_DBUS + undefine CONFIG_CTRL_IFACE_DBUS_NEW + undefine CONFIG_CTRL_IFACE_DBUS_INTRO '' + (if withReadline then '' CONFIG_READLINE=y '' else '' |