3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/fmit/default.nix

50 lines
1.4 KiB
Nix
Raw Normal View History

# FIXME: upgrading qt5Full (Qt 5.3) to qt5.{base,multimedia} (Qt 5.4) breaks
# the default Qt audio capture source!
{ stdenv, fetchFromGitHub, fftw, freeglut, qt5Full
, alsaSupport ? false, alsaLib ? null
, jackSupport ? false, libjack2 ? null }:
assert alsaSupport -> alsaLib != null;
assert jackSupport -> libjack2 != null;
let version = "1.0.8"; in
2015-06-15 20:34:30 +01:00
stdenv.mkDerivation {
name = "fmit-${version}";
2015-06-15 20:34:30 +01:00
src = fetchFromGitHub {
sha256 = "04s7xcgmi5g58lirr48vf203n1jwdxf981x1p6ysbax24qwhs2kd";
2015-06-15 20:34:30 +01:00
rev = "v${version}";
repo = "fmit";
owner = "gillesdegottex";
};
buildInputs = [ fftw freeglut qt5Full ]
++ stdenv.lib.optional alsaSupport [ alsaLib ]
++ stdenv.lib.optional jackSupport [ libjack2 ];
configurePhase = ''
mkdir build
cd build
qmake \
CONFIG+=${stdenv.lib.optionalString alsaSupport "acs_alsa"} \
CONFIG+=${stdenv.lib.optionalString jackSupport "acs_jack"} \
PREFIX="$out" PREFIXSHORTCUT="$out" \
../fmit.pro
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
2015-06-15 20:34:30 +01:00
inherit version;
description = "Free Musical Instrument Tuner";
longDescription = ''
FMIT is a graphical utility for tuning musical instruments, with error
and volume history, and advanced features.
'';
2015-06-15 20:34:30 +01:00
homepage = http://gillesdegottex.github.io/fmit/;
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ nckx ];
};
}