anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / tony / default.nix
bloba0af1a706643b3133c365c45e3f59fae62e798af
1 { lib, stdenv, fetchurl, fetchpatch2, pkg-config, wrapQtAppsHook
2 , alsa-lib, boost, bzip2, fftw, fftwFloat, libX11, libfishsound, libid3tag
3 , libjack2, liblo, libmad, libogg, liboggz, libpulseaudio, libsamplerate
4 , libsndfile, lrdf, opusfile, qtbase, qtsvg, rubberband, serd, sord
5 }:
7 stdenv.mkDerivation rec {
8   pname = "tony";
9   version = "2.1.1";
11   src = fetchurl {
12     url = "https://code.soundsoftware.ac.uk/attachments/download/2616/${pname}-${version}.tar.gz";
13     sha256 = "03g2bmlj08lmgvh54dyd635xccjn730g4wwlhpvsw04bffz8b7fp";
14   };
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   ];
32   nativeBuildInputs = [ pkg-config wrapQtAppsHook ];
34   buildInputs = [
35     alsa-lib boost bzip2 fftw fftwFloat libX11 libfishsound libid3tag
36     libjack2 liblo libmad libogg liboggz libpulseaudio libsamplerate
37     libsndfile lrdf opusfile qtbase qtsvg rubberband serd sord
38   ];
40   # comment out the tests
41   preConfigure = ''
42     sed -i 's/sub_test_svcore_/#sub_test_svcore_/' tony.pro
43   '';
45   enableParallelBuilding = true;
47   meta = with lib; {
48     description = "Pitch and note annotation of unaccompanied melody";
49     mainProgram = "tony";
50     homepage = "https://www.sonicvisualiser.org/tony/";
51     license = licenses.gpl2Plus;
52     maintainers = with maintainers; [ orivej ];
53     platforms = platforms.linux;
54   };