anchor.diff:      CONFIG_INTERNETWORKING=y
       CONFIG_HS20=y
       CONFIG_ACS=y
  -  '' + optionalString (sqlite != null) ''
  +  '' + stdenv.lib.optionalString (sqlite != null) ''
       CONFIG_SQLITE=y
     '';
   
  
positive.code: { stdenv, fetchurl, pkgconfig, libnl, openssl, sqlite ? null }:
  
  with stdenv.lib;
  let noScanPatch = fetchurl {
        url="https://git.telliq.com/gtu/openwrt/raw/master/package/network/services/hostapd/patches/300-noscan.patch";
        sha256 = "04wg4yjc19wmwk6gia067z99gzzk9jacnwxh5wyia7k5wg71yj5k";
    };
  in stdenv.mkDerivation rec {
    name = "hostapd-${version}";
    version = "2.8";
  
  
negative.code:   nativeBuildInputs = [ pkgconfig ];
    buildInputs = [ libnl openssl sqlite ];
  
    patches = [
      (fetchurl {
        # Note: fetchurl seems to be unhappy with openwrt git
        # server's URLs containing semicolons. Using the github mirror instead.
        url = "https://raw.githubusercontent.com/openwrt/openwrt/master/package/network/services/hostapd/patches/300-noscan.patch";
        sha256 = "04wg4yjc19wmwk6gia067z99gzzk9jacnwxh5wyia7k5wg71yj5k";})
    ];
  
    outputs = [ "out" "man" ];
  
  