build smaller versions of hostap and nftables

This commit is contained in:
Daniel Barlow 2023-03-06 17:49:59 +00:00
parent aa5f8c07e6
commit 4596bc3e88

View file

@ -16,6 +16,14 @@ extraPkgs // {
(if o ? patches then o.patches else []) ++ (if o ? patches then o.patches else []) ++
(if patch_needed then [ patch ] else []); (if patch_needed then [ patch ] else []);
}); });
nftables = prev.nftables.overrideAttrs(o: {
configureFlags = [
"--disable-debug"
"--disable-python"
"--with-mini-gmp"
"--without-cli"
];
}); });
dnsmasq = dnsmasq =
@ -29,6 +37,8 @@ extraPkgs // {
nettle = null; nettle = null;
}; };
hostapd = prev.hostapd.override { sqlite = null; };
dropbear = prev.dropbear.overrideAttrs (o: { dropbear = prev.dropbear.overrideAttrs (o: {
postPatch = '' postPatch = ''
(echo '#define DSS_PRIV_FILENAME "/run/dropbear/dropbear_dss_host_key"' (echo '#define DSS_PRIV_FILENAME "/run/dropbear/dropbear_dss_host_key"'