anchor.diff:      optional
       optionals;
   
  -  versionMajor = "0.19";
  -  versionMinor = "21";
  +  versionMajor = "0.20";
  +  versionMinor = "1";
   in
   stdenv.mkDerivation rec {
     name = "mpd-${versionMajor}.${versionMinor}";
  
positive.code:     zziplib
    ];
  
    configureFlags = [
      "--disable-aac"
      # TODO: adplug support
      #"--${boolEn }-adplug" true null)
      "--${boolEn (alsa-lib != null)}-alsa"
      "--${boolEn (audiofile != null)}-audiofile"
      "--${boolEn (bzip2 != null)}-bzip2"
      # TODO: cdio-paranoia support
      #"--${boolEn (libcdio != null)}-cdio-paranoia"
      "--${boolEn (curl != null)}-curl"
      "--enable-database"
      "--enable-dsd"
      "--enable-fifo"
      "--${boolEn (ffmpeg != null)}-ffmpeg"
      "--${boolEn (flac != null)}-flac"
      "--${boolEn (fluidsynth != null)}-fluidsynth"
      "--${boolEn (game-music-emu != null)}-gme"
      "--disable-haiku"
      "--enable-httpd-output"
      "--enable-iconv"
      "--${boolEn (icu != null)}-icu"
      "--${boolEn (libid3tag != null)}-id3"
      "--enable-inotify"
      "--enable-ipv6"
      "--${boolEn (jack2_lib != null)}-jack"
      "--${boolEn (lame != null)}-lame-encoder"
      "--${boolEn (libmpdclient != null)}-libmpdclient"
      # TODO: libwrap support
      #"--${boolEn }-libwrap" true null)
      "--${boolEn (libsndfile != null)}-sndfile"
      "--${boolEn (libsamplerate != null)}-lsr"
      "--${boolEn (libmad != null)}-mad"
      "--${boolEn (libmikmod != null)}-mikmod"
      "--${boolEn (libmms != null)}-mms"
      "--${boolEn (libmodplug != null)}-modplug"
      "--${boolEn (mpg123 != null)}-mpg123"
      "--enable-neighbor-plugins"
      "--${boolEn (openal != null)}-openal"
      "--${boolEn (opus != null)}-opus"
      "--disable-oss"
      "--disable-osx"
      "--enable-pipe-output"
      "--${boolEn (pulseaudio_lib != null)}-pulse"
      "--${boolEn (libshout != null)}-shout"
      "--disable-solaris-output"
      "--${boolEn (yajl != null)}-soundcloud"
      "--${boolEn (sqlite != null)}-sqlite"
      # TODO: twolame support
      #"--${boolEn (twolame != null)}-twolame"
      "--enable-un"
      "--${boolEn (libupnp != null)}-upnp"
      "--${boolEn (libvorbis != null)}-vorbis"
      "--${boolEn (libvorbis != null)}-vorbis-encoder"
      "--enable-wave-encoder"
      "--${boolEn (wavpack != null)}-wavpack"
      "--${boolWt (avahi != null && dbus != null)}-zeroconf${
          boolString (avahi != null && dbus != null) "=avahi" ""}"
      "--${boolEn (zlib != null)}-zlib"
      "--${boolEn (zziplib != null)}-zzip"
      "--${boolWt (systemd_lib != null)}-systemdsystemunitdir${
          boolString (systemd_lib != null) "=$(out)/etc/systemd/system" ""}"
      "--disable-debug"
      "--${boolEn documentationSupport}-documentation"
      "--disable-werror"
    ];
  
    NIX_LDFLAGS = [ ] ++ optional (libshout != null) "-lshout";
  
negative.code:     libupnp
      libvorbis
      mpg123
      musepack
      openal
      opus
      pulseaudio_lib
      samba_client
      #shine
      soxr
      sqlite
      systemd_lib
  