3
0
Fork 0
forked from mirrors/nixpkgs

fmit: 1.0.13 -> 1.0.14

This commit is contained in:
Tobias Geerinckx-Rice 2016-05-08 15:02:35 +02:00
parent a6db057229
commit 87442aa4f3
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -7,33 +7,35 @@ assert alsaSupport -> alsaLib != null;
assert jackSupport -> libjack2 != null; assert jackSupport -> libjack2 != null;
assert portaudioSupport -> portaudio != null; assert portaudioSupport -> portaudio != null;
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fmit-${version}"; name = "fmit-${version}";
version = "1.0.13"; version = "1.0.14";
src = fetchFromGitHub { src = fetchFromGitHub {
sha256 = "04cj70q60sqns68nvw4zfy6078x4cc2q1y2y13z3rs5n80jw27by"; sha256 = "1f8raqpqqyr02lnpxxpg69a2if1nbw0za71x62kcp3pms1qc0mbh";
rev = "v${version}"; rev = "v${version}";
repo = "fmit"; repo = "fmit";
owner = "gillesdegottex"; owner = "gillesdegottex";
}; };
buildInputs = [ fftw freeglut mesa_glu qtbase qtmultimedia qmakeHook ] buildInputs = [ fftw freeglut mesa_glu qtbase qtmultimedia qmakeHook ]
++ stdenv.lib.optionals alsaSupport [ alsaLib ] ++ optionals alsaSupport [ alsaLib ]
++ stdenv.lib.optionals jackSupport [ libjack2 ] ++ optionals jackSupport [ libjack2 ]
++ stdenv.lib.optionals portaudioSupport [ portaudio ]; ++ optionals portaudioSupport [ portaudio ];
preConfigure = '' preConfigure = ''
qmakeFlags="$qmakeFlags \ qmakeFlags="$qmakeFlags \
CONFIG+=${stdenv.lib.optionalString alsaSupport "acs_alsa"} \ CONFIG+=${optionalString alsaSupport "acs_alsa"} \
CONFIG+=${stdenv.lib.optionalString jackSupport "acs_jack"} \ CONFIG+=${optionalString jackSupport "acs_jack"} \
CONFIG+=${stdenv.lib.optionalString portaudioSupport "acs_portaudio"} \ CONFIG+=${optionalString portaudioSupport "acs_portaudio"} \
PREFIXSHORTCUT=$out" PREFIXSHORTCUT=$out"
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;
meta = with stdenv.lib; { meta = {
description = "Free Musical Instrument Tuner"; description = "Free Musical Instrument Tuner";
longDescription = '' longDescription = ''
FMIT is a graphical utility for tuning musical instruments, with error FMIT is a graphical utility for tuning musical instruments, with error