anchor.diff:      "--with-pppd=${ppp}/bin/pppd"
       #"--with-pppoe"
       "--with-modem-manager-1"
  -    "--with-dhclient=${dhcp}/bin/dhclient"
  -    "--with-dhcpcd=${dhcpcd}/sbin/dhcpcd"
  +    (wtFlag "dhclient" (dhcp-client == "dhclient") "${dhcp}/bin/dhclient")
  +    (wtFlag "dhcpcd" (dhcp-client == "dhcpcd") "${dhcpcd}/sbin/dhcpcd")
       "--with-resolvconf=${openresolv}/sbin/resolvconf"
       #"--with-netconfig"
       "--with-iptables=${iptables}/bin/iptables"
  
positive.code:       mkdir -pv $out/etc/systemd/system
        ln -sv \
          $out/lib/systemd/system/NetworkManager.service \
          $out/etc/systemd/system/network-manager.service
        ln -sv \
          $out/lib/systemd/system/NetworkManager.service \
          $out/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
        ln -sv \
          $out/lib/systemd/system/NetworkManager-dispatcher.service \
          $out/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
      '' + ''
        sed -i $out/lib/udev/rules.d/84-nm-drivers.rules \
          -e 's|/bin/sh|${stdenv.shell}|'
      '';
  
    meta = with stdenv.lib; {
  
negative.code:     modemmanager
      newt
      nss
      openresolv
      perl
      polkit
      ppp
      readline
      systemd_full
      util-linux_lib
      vala
      wirelesstools
      xz
    ] ++ optionals (dhcp-client == "dhclient") [
      dhcp
    ] ++ optionals (dhcp-client == "dhcpcd") [
      dhcpcd
    ];
  
    patches = [
  