anchor.diff:              echo "$NAME=$OPTION" >> .config
           done
       }
  -  '';
  -
  -  nixConfig = ''
  -    CONFIG_PREFIX "$out"
  -    CONFIG_INSTALL_NO_USR y
  -
  -    # Use the external mount.cifs program.
  -    CONFIG_FEATURE_MOUNT_CIFS n
  -    CONFIG_FEATURE_MOUNT_HELPERS y
  -  '';
  -
  -  staticConfig = stdenv.lib.optionalString enableStatic ''
  -    CONFIG_STATIC y
     '';
   
   in
  
positive.code: {stdenv, fetchurl, enableStatic ? false, extraConfig ? ""}:
  
  let
    configParser = ''
  
negative.code:             NAME=`echo "$LINE" | cut -d \  -f 1`
              OPTION=`echo "$LINE" | cut -d \  -f 2`
  
              if ! [[ "$NAME" =~ ^CONFIG_ ]]; then continue; fi
  
              echo "parseconfig: removing $NAME"
              sed -i /$NAME'\(=\| \)'/d .config
  