From 43883b0f53c5d4abcae41ec616d0b49aa3abbcb1 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 9 Mar 2026 16:52:20 +0100 Subject: [PATCH] hostapd: use structuredAttrs instead of passAsFile --- pkgs/by-name/ho/hostapd/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ho/hostapd/package.nix b/pkgs/by-name/ho/hostapd/package.nix index 485a075cf30c..1d6b53f4c8a0 100644 --- a/pkgs/by-name/ho/hostapd/package.nix +++ b/pkgs/by-name/ho/hostapd/package.nix @@ -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";