anchor.diff:      "--disable-gtk3"
       "--${boolEn (dbus != null)}-dbus"
       "--disable-dbm"
  -    "--disable-gdbm"
  +    "--enable-gdbm"
       "--${boolEn (libdaemon != null)}-libdaemon"
       "--disable-python"
  -    # Circular dependency:
  -    # avahi -> pygtk -> gtk2 -> cups -> avahi
  -    "--disable-pygtk"
  +    "--disable-pygobject"
       "--disable-python-dbus"
       "--disable-mono"
       "--disable-monodoc"
  
positive.code: { stdenv
  , autoconf
  , automake
  , fetchurl
  , lib
  , libtool
  , gettext
  , xmltoman
  , intltool
  
  , dbus
  , expat
  , glib
  , libdaemon
  }:
  
negative.code:     boolString
      boolWt;
  
    version = "0.7";
  in
  stdenv.mkDerivation rec {
    name = "avahi-${version}";
  
    src = fetchurl {
      url = "https://github.com/lathiat/avahi/releases/download/v${version}/${name}.tar.gz";
      sha256 = "57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804";
    };
  
    nativeBuildInputs = [
      gettext
      intltool
      perl
      xmltoman
    ];
  
    buildInputs = [
      dbus
      expat
      gdbm
      glib
      libdaemon
    ];
  
    configureFlags = [
      "--sysconfdir=/etc"
      "--localstatedir=/var"
      "--enable-nls"
      "--${boolEn (glib != null)}-glib"
  