anchor.diff: -{ stdenv, fetchFromGitHub, cmake, pkgconfig, vlc
  +{ mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig, vlc
   , qtbase, qtmultimedia, qtsvg, qttools
   
   # Cantata doesn't build with cdparanoia enabled so we disable that
  
positive.code:     "-DENABLE_HTTPS_SUPPORT=ON"
    ];
  
    meta = with stdenv.lib; {
      homepage    = https://github.com/cdrummond/cantata;
      description = "A graphical client for MPD";
      license     = licenses.gpl3;
  
negative.code:   };
  
    buildInputs = [ vlc qtbase qtmultimedia qtsvg ]
      ++ lib.optionals withTaglib [ taglib taglib_extras ]
      ++ lib.optionals withReplaygain [ ffmpeg speex mpg123 ]
      ++ lib.optional  withCdda cdparanoia
      ++ lib.optional  withCddb libcddb
      ++ lib.optional  withLame lame
      ++ lib.optional  withMtp libmtp
      ++ lib.optional  withMusicbrainz libmusicbrainz5
      ++ lib.optional  withUdisks udisks2;
  
    nativeBuildInputs = [ cmake pkgconfig qttools ];
  
    enableParallelBuilding = true;
  
    cmakeFlags = lib.flatten [
      (fstats withTaglib        [ "TAGLIB" "TAGLIB_EXTRAS" ])
      (fstats withReplaygain    [ "FFMPEG" "MPG123" "SPEEXDSP" ])
      (fstat withCdda           "CDPARANOIA")
  