2023-03-20 01:23:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch2, pkg-config, wrapQtAppsHook
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib, boost, bzip2, fftw, fftwFloat, libX11, libfishsound, libid3tag
|
2020-03-26 21:10:10 +00:00
|
|
|
, libjack2, liblo, libmad, libogg, liboggz, libpulseaudio, libsamplerate
|
|
|
|
, libsndfile, lrdf, opusfile, qtbase, qtsvg, rubberband, serd, sord
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 10:34:30 +00:00
|
|
|
pname = "tony";
|
|
|
|
version = "2.1.1";
|
2020-03-26 21:10:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "https://code.soundsoftware.ac.uk/attachments/download/2616/${pname}-${version}.tar.gz";
|
2020-03-26 21:10:10 +00:00
|
|
|
sha256 = "03g2bmlj08lmgvh54dyd635xccjn730g4wwlhpvsw04bffz8b7fp";
|
|
|
|
};
|
|
|
|
|
2023-03-20 01:23:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/sonic-visualiser/svcore/commit/5a7b517e43b7f0b3f03b7fc3145102cf4e5b0ffc.patch";
|
|
|
|
stripLen = 1;
|
|
|
|
extraPrefix = "svcore/";
|
|
|
|
sha256 = "sha256-DOCdQqCihkR0g/6m90DbJxw00QTpyVmFzCxagrVWKiI=";
|
|
|
|
})
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/sonic-visualiser/svgui/commit/5b6417891cff5cc614e8c96664d68674eb12b191.patch";
|
|
|
|
stripLen = 1;
|
|
|
|
extraPrefix = "svgui/";
|
|
|
|
excludes = [ "svgui/widgets/CSVExportDialog.cpp" ];
|
|
|
|
sha256 = "sha256-pBCtoMXgjreUm/D0pl6+R9x1Ovwwwj8Ohv994oMX8XA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapQtAppsHook ];
|
2020-03-26 21:10:10 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib boost bzip2 fftw fftwFloat libX11 libfishsound libid3tag
|
2020-03-26 21:10:10 +00:00
|
|
|
libjack2 liblo libmad libogg liboggz libpulseaudio libsamplerate
|
|
|
|
libsndfile lrdf opusfile qtbase qtsvg rubberband serd sord
|
|
|
|
];
|
|
|
|
|
|
|
|
# comment out the tests
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/sub_test_svcore_/#sub_test_svcore_/' tony.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-26 21:10:10 +00:00
|
|
|
description = "Pitch and note annotation of unaccompanied melody";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.sonicvisualiser.org/tony/";
|
2020-03-26 21:10:10 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|