nixos/wpa_supplicant: make new behavior opt-in

This commit is contained in:
Maximilian Bosch
2021-04-16 13:18:46 +02:00
parent de0a39166b
commit 08ced9d67f
3 changed files with 31 additions and 6 deletions
@@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, fetchpatch, openssl, pkg-config, libnl
, dbus, readline ? null, pcsclite ? null
, readOnlyModeSSIDs ? false
}:
with lib;
@@ -43,6 +45,7 @@ stdenv.mkDerivation rec {
url = "https://w1.fi/cgit/hostap/patch/?id=a0541334a6394f8237a4393b7372693cd7e96f15";
sha256 = "1gbhlz41x1ar1hppnb76pqxj6vimiypy7c4kq6h658637s4am3xg";
})
] ++ lib.optionals readOnlyModeSSIDs [
# Allow read-only networks
./0001-Implement-read-only-mode-for-ssids.patch
];
@@ -136,7 +139,7 @@ stdenv.mkDerivation rec {
homepage = "https://w1.fi/wpa_supplicant/";
description = "A tool for connecting to WPA and WPA2-protected wireless networks";
license = licenses.bsd3;
maintainers = with maintainers; [ marcweber ];
maintainers = with maintainers; [ marcweber ma27 ];
platforms = platforms.linux;
};
}