anchor.diff:    };
   
     buildInputs = [ vlc qtbase qtmultimedia qtsvg ]
  -    ++ stdenv.lib.optionals withTaglib [ taglib taglib_extras ]
  -    ++ stdenv.lib.optionals withReplaygain [ ffmpeg speex mpg123 ]
  -    ++ stdenv.lib.optional  withCdda cdparanoia
  -    ++ stdenv.lib.optional  withCddb libcddb
  -    ++ stdenv.lib.optional  withLame lame
  -    ++ stdenv.lib.optional  withMtp libmtp
  -    ++ stdenv.lib.optional  withMusicbrainz libmusicbrainz5
  -    ++ stdenv.lib.optional  withUdisks udisks2;
  +    ++ 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 = stdenv.lib.flatten [
  +  cmakeFlags = lib.flatten [
       (fstats withTaglib        [ "TAGLIB" "TAGLIB_EXTRAS" ])
       (fstats withReplaygain    [ "FFMPEG" "MPG123" "SPEEXDSP" ])
       (fstat withCdda           "CDPARANOIA")
  
positive.code: 
    withUdisks = (withTaglib && withDevices);
  
  in stdenv.mkDerivation rec {
    name = "${pname}-${version}";
  
    src = fetchFromGitHub {
  
negative.code: { mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig, vlc
  , qtbase, qtmultimedia, qtsvg, qttools
  
  # Cantata doesn't build with cdparanoia enabled so we disable that
  