Unverified Commit 43883b0f authored by Stefan Frijters's avatar Stefan Frijters
Browse files

hostapd: use structuredAttrs instead of passAsFile

parent c1acd8a5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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";