liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3feb8eb5f91fefc9688bfe907f0ed704f3f4726a
parent c7aa8c7756ab493e3a0f2bc851904c0b50057008
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 22 Apr 2023 22:17:35 +0100

shrink hostap, build it without openssl

Diffstat:
Moverlay.nix | 27++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/overlay.nix b/overlay.nix @@ -121,7 +121,32 @@ extraPkgs // { nettle = null; }; - hostapd = prev.hostapd.override { sqlite = null; }; + hostapd = + let + config = [ + "CONFIG_DRIVER_NL80211=y" + "CONFIG_IAPP=y" + "CONFIG_IEEE80211AC=y" + "CONFIG_IEEE80211N=y" + "CONFIG_IEEE80211W=y" + "CONFIG_INTERNAL_LIBTOMMATH=y" + "CONFIG_INTERNAL_LIBTOMMATH_FAST=y" + "CONFIG_IPV6=y" + "CONFIG_LIBNL32=y" + "CONFIG_PKCS12=y" + "CONFIG_RSN_PREAUTH=y" + "CONFIG_TLS=internal" + ]; + h = prev.hostapd.overrideAttrs(o: { + extraConfig = ""; + configurePhase = '' + cat > hostapd/defconfig <<EOF + ${builtins.concatStringsSep "\n" config} + EOF + ${o.configurePhase} + ''; + }); + in h.override { openssl = null; sqlite = null; }; dropbear = prev.dropbear.overrideAttrs (o: { postPatch = ''