2015-09-27 16:26:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, freeglut, qtbase, qtmultimedia
|
2015-08-31 18:28:43 +01:00
|
|
|
, alsaSupport ? true, alsaLib ? null
|
2015-08-31 18:34:57 +01:00
|
|
|
, jackSupport ? false, libjack2 ? null
|
|
|
|
, portaudioSupport ? false, portaudio ? null }:
|
2015-08-06 06:20:12 +01:00
|
|
|
|
|
|
|
assert alsaSupport -> alsaLib != null;
|
|
|
|
assert jackSupport -> libjack2 != null;
|
2015-08-31 18:34:57 +01:00
|
|
|
assert portaudioSupport -> portaudio != null;
|
2015-01-11 02:19:40 +00:00
|
|
|
|
2015-08-13 21:42:33 +01:00
|
|
|
let version = "1.0.8"; in
|
2015-06-15 20:34:30 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-01-11 02:19:40 +00:00
|
|
|
name = "fmit-${version}";
|
|
|
|
|
2015-06-15 20:34:30 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-08-13 21:42:33 +01:00
|
|
|
sha256 = "04s7xcgmi5g58lirr48vf203n1jwdxf981x1p6ysbax24qwhs2kd";
|
2015-06-15 20:34:30 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "fmit";
|
|
|
|
owner = "gillesdegottex";
|
2015-01-11 02:19:40 +00:00
|
|
|
};
|
|
|
|
|
2015-09-27 16:26:33 +01:00
|
|
|
buildInputs = [ fftw freeglut qtbase qtmultimedia ]
|
2015-09-29 22:00:45 +01:00
|
|
|
++ stdenv.lib.optionals alsaSupport [ alsaLib ]
|
|
|
|
++ stdenv.lib.optionals jackSupport [ libjack2 ]
|
|
|
|
++ stdenv.lib.optionals portaudioSupport [ portaudio ];
|
2015-08-06 06:10:15 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
2015-08-11 19:38:19 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-08-06 06:20:12 +01:00
|
|
|
qmake \
|
|
|
|
CONFIG+=${stdenv.lib.optionalString alsaSupport "acs_alsa"} \
|
|
|
|
CONFIG+=${stdenv.lib.optionalString jackSupport "acs_jack"} \
|
2015-08-31 18:34:57 +01:00
|
|
|
CONFIG+=${stdenv.lib.optionalString portaudioSupport "acs_portaudio"} \
|
2015-08-11 19:38:19 +01:00
|
|
|
PREFIX="$out" PREFIXSHORTCUT="$out" \
|
|
|
|
../fmit.pro
|
2015-08-06 06:10:15 +01:00
|
|
|
'';
|
2015-01-11 02:19:40 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-06-15 20:34:30 +01:00
|
|
|
inherit version;
|
2015-01-11 02:19:40 +00:00
|
|
|
description = "Free Musical Instrument Tuner";
|
|
|
|
longDescription = ''
|
2015-08-06 06:10:15 +01:00
|
|
|
FMIT is a graphical utility for tuning musical instruments, with error
|
|
|
|
and volume history, and advanced features.
|
2015-01-11 02:19:40 +00:00
|
|
|
'';
|
2015-06-15 20:34:30 +01:00
|
|
|
homepage = http://gillesdegottex.github.io/fmit/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2015-08-06 06:10:15 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-11 02:19:40 +00:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
}
|