nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

sonic-visualiser: 2.4.1 -> 4.0.1

The program is no longer broken.

(cherry picked from commit 528e27b33cdbb79253c031b4578aed344e8620bc)

authored by

Jos van den Oever and committed by
John Ericson
925ae0de c86eb53a

+18 -18
+18 -18
pkgs/applications/audio/sonic-visualiser/default.nix
··· 2 2 3 3 { stdenv, fetchurl, alsaLib, bzip2, fftw, libjack2, libX11, liblo 4 4 , libmad, libogg, librdf, librdf_raptor, librdf_rasqal, libsamplerate 5 - , libsndfile, pkgconfig, libpulseaudio, qtbase, redland 6 - , qmake, rubberband, serd, sord, vampSDK, fftwFloat 5 + , libsndfile, pkgconfig, libpulseaudio, qtbase, qtsvg, redland 6 + , rubberband, serd, sord, vampSDK, fftwFloat 7 + , capnproto, liboggz, libfishsound, libid3tag, opusfile 8 + , wrapQtAppsHook 7 9 }: 8 10 9 11 stdenv.mkDerivation rec { 10 12 pname = "sonic-visualiser"; 11 - version = "2.4.1"; 13 + version = "4.0.1"; 12 14 13 15 src = fetchurl { 14 - url = "https://code.soundsoftware.ac.uk/attachments/download/1185/${pname}-${version}.tar.gz"; 15 - sha256 = "06nlha70kgrby16nyhngrv5q846xagnxdinv608v7ga7vpywwmyb"; 16 + url = "https://code.soundsoftware.ac.uk/attachments/download/2607/${pname}-${version}.tar.gz"; 17 + sha256 = "14674adzp3chilymna236qyvci3b1zmi3wyz696wk7bcd3ndpsg6"; 16 18 }; 17 19 18 20 buildInputs = 19 - [ libsndfile qtbase fftw fftwFloat bzip2 librdf rubberband 21 + [ libsndfile qtbase qtsvg fftw fftwFloat bzip2 librdf rubberband 20 22 libsamplerate vampSDK alsaLib librdf_raptor librdf_rasqal redland 21 23 serd 22 24 sord ··· 28 26 libpulseaudio 29 27 libmad 30 28 libogg # ? 31 - # fishsound 29 + libfishsound 32 30 liblo 33 31 libX11 32 + capnproto 33 + liboggz 34 + libid3tag 35 + opusfile 34 36 ]; 35 37 36 - nativeBuildInputs = [ pkgconfig qmake ]; 38 + nativeBuildInputs = [ pkgconfig wrapQtAppsHook ]; 37 39 38 - configurePhase = '' 39 - for i in sonic-visualiser svapp svcore svgui; 40 - do cd $i && qmake PREFIX=$out && cd ..; 41 - done 42 - ''; 40 + enableParallelBuilding = true; 43 41 44 - installPhase = '' 45 - mkdir -p $out/{bin,share/sonic-visualiser} 46 - cp sonic-visualiser $out/bin/ 47 - cp -r samples $out/share/sonic-visualiser/ 42 + # comment out the tests 43 + preConfigure = '' 44 + sed -i 's/sub_test_svcore_/#sub_test_svcore_/' sonic-visualiser.pro 48 45 ''; 49 46 50 47 meta = with stdenv.lib; { ··· 52 51 license = licenses.gpl2Plus; 53 52 maintainers = [ maintainers.goibhniu maintainers.marcweber ]; 54 53 platforms = platforms.linux; 55 - broken = true; 56 54 }; 57 55 }