hostapd: use structuredAttrs instead of passAsFile (#498306)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user