hostapd: use structuredAttrs instead of passAsFile

This commit is contained in:
Stefan Frijters
2026-03-09 16:52:20 +01:00
parent c1acd8a5db
commit 43883b0f53
+3 -3
View File
@@ -103,12 +103,10 @@ stdenv.mkDerivation (finalAttrs: {
CONFIG_SQLITE=y
'';
passAsFile = [ "extraConfig" ];
configurePhase = ''
cd hostapd
cp -v defconfig .config
cat $extraConfigPath >> .config
printf "%s" "$extraConfig" >> .config
cat -n .config
substituteInPlace Makefile --replace /usr/local $out
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libnl-3.0)"
@@ -124,6 +122,8 @@ stdenv.mkDerivation (finalAttrs: {
inherit (nixosTests) wpa_supplicant;
};
__structuredAttrs = true;
meta = {
homepage = "https://w1.fi/hostapd/";
description = "User space daemon for access point and authentication servers";