1 { lib, mkDerivation, fetchFromGitHub, fftw, qtbase, qtmultimedia, qmake, itstool, wrapQtAppsHook
2 , alsaSupport ? true, alsa-lib ? null
3 , jackSupport ? false, libjack2 ? null
4 , portaudioSupport ? false, portaudio ? null }:
6 assert alsaSupport -> alsa-lib != null;
7 assert jackSupport -> libjack2 != null;
8 assert portaudioSupport -> portaudio != null;
14 src = fetchFromGitHub {
15 owner = "gillesdegottex";
18 sha256 = "1q062pfwz2vr9hbfn29fv54ip3jqfd9r99nhpr8w7mn1csy38azx";
21 nativeBuildInputs = [ qmake itstool wrapQtAppsHook ];
22 buildInputs = [ fftw qtbase qtmultimedia ]
23 ++ lib.optionals alsaSupport [ alsa-lib ]
24 ++ lib.optionals jackSupport [ libjack2 ]
25 ++ lib.optionals portaudioSupport [ portaudio ];
28 substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}'
32 qmakeFlags="$qmakeFlags \
33 CONFIG+=${lib.optionalString alsaSupport "acs_alsa"} \
34 CONFIG+=${lib.optionalString jackSupport "acs_jack"} \
35 CONFIG+=${lib.optionalString portaudioSupport "acs_portaudio"} \
40 description = "Free Musical Instrument Tuner";
42 FMIT is a graphical utility for tuning musical instruments, with error
43 and volume history, and advanced features.
45 homepage = "http://gillesdegottex.github.io/fmit/";
46 license = licenses.gpl3Plus;
47 maintainers = with maintainers; [ orivej ];
48 platforms = platforms.linux;