tony: fix build with GCC 12 (#222095)

authored by

Orivej Desh and committed by
GitHub
83c26b69 18b17c58

+17 -1
+17 -1
pkgs/applications/audio/tony/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, wrapQtAppsHook 1 + { lib, stdenv, fetchurl, fetchpatch2, pkg-config, wrapQtAppsHook 2 2 , alsa-lib, boost, bzip2, fftw, fftwFloat, libX11, libfishsound, libid3tag 3 3 , libjack2, liblo, libmad, libogg, liboggz, libpulseaudio, libsamplerate 4 4 , libsndfile, lrdf, opusfile, qtbase, qtsvg, rubberband, serd, sord ··· 12 12 url = "https://code.soundsoftware.ac.uk/attachments/download/2616/${pname}-${version}.tar.gz"; 13 13 sha256 = "03g2bmlj08lmgvh54dyd635xccjn730g4wwlhpvsw04bffz8b7fp"; 14 14 }; 15 + 16 + patches = [ 17 + (fetchpatch2 { 18 + url = "https://github.com/sonic-visualiser/svcore/commit/5a7b517e43b7f0b3f03b7fc3145102cf4e5b0ffc.patch"; 19 + stripLen = 1; 20 + extraPrefix = "svcore/"; 21 + sha256 = "sha256-DOCdQqCihkR0g/6m90DbJxw00QTpyVmFzCxagrVWKiI="; 22 + }) 23 + (fetchpatch2 { 24 + url = "https://github.com/sonic-visualiser/svgui/commit/5b6417891cff5cc614e8c96664d68674eb12b191.patch"; 25 + stripLen = 1; 26 + extraPrefix = "svgui/"; 27 + excludes = [ "svgui/widgets/CSVExportDialog.cpp" ]; 28 + sha256 = "sha256-pBCtoMXgjreUm/D0pl6+R9x1Ovwwwj8Ohv994oMX8XA="; 29 + }) 30 + ]; 15 31 16 32 nativeBuildInputs = [ pkg-config wrapQtAppsHook ]; 17 33