anchor.diff:      license = licenses.gpl2Plus;
       maintainers = [ maintainers.goibhniu maintainers.marcweber ];
       platforms = platforms.linux;
  -    broken = true;
     };
   }
  
positive.code:       libpulseaudio
        libmad
        libogg # ?
        # fishsound
        liblo
        libX11
      ];
  
    nativeBuildInputs = [ pkgconfig qmake ];
  
    configurePhase = ''
      for i in sonic-visualiser svapp svcore svgui;
        do cd $i && qmake PREFIX=$out && cd ..;
      done
    '';
  
    installPhase = ''
      mkdir -p $out/{bin,share/sonic-visualiser}
      cp sonic-visualiser $out/bin/
      cp -r samples $out/share/sonic-visualiser/
    '';
  
    meta = with stdenv.lib; {
  
negative.code: 
  { stdenv, fetchurl, alsaLib, bzip2, fftw, libjack2, libX11, liblo
  , libmad, libogg, librdf, librdf_raptor, librdf_rasqal, libsamplerate
  , libsndfile, pkgconfig, libpulseaudio, qtbase, qtsvg, redland
  , rubberband, serd, sord, vampSDK, fftwFloat
  , capnproto, liboggz, libfishsound, libid3tag, opusfile
  , wrapQtAppsHook
  }:
  
  stdenv.mkDerivation rec {
    pname = "sonic-visualiser";
    version = "4.0.1";
  
    src = fetchurl {
      url = "https://code.soundsoftware.ac.uk/attachments/download/2607/${pname}-${version}.tar.gz";
      sha256 = "14674adzp3chilymna236qyvci3b1zmi3wyz696wk7bcd3ndpsg6";
    };
  
    buildInputs =
      [ libsndfile qtbase qtsvg fftw fftwFloat bzip2 librdf rubberband
        libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland
        serd
        sord
  