diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:36 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-01-07 02:18:47 +0000 |
commit | 36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2 (patch) | |
tree | b3faaf573407b32aa645237a4d16b82778a39a92 /nixpkgs/pkgs/applications/audio/fmit | |
parent | 4e31070265257dc67d120c27e0f75c2344fdfa9a (diff) | |
parent | abf060725d7614bd3b9f96764262dfbc2f9c2199 (diff) | |
download | nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.gz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.bz2 nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.lz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.xz nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.tar.zst nixlib-36f56d99fa0a0765c9f1de4a5f17a9b05830c3f2.zip |
Add 'nixpkgs/' from commit 'abf060725d7614bd3b9f96764262dfbc2f9c2199'
git-subtree-dir: nixpkgs git-subtree-mainline: 4e31070265257dc67d120c27e0f75c2344fdfa9a git-subtree-split: abf060725d7614bd3b9f96764262dfbc2f9c2199
Diffstat (limited to 'nixpkgs/pkgs/applications/audio/fmit')
-rw-r--r-- | nixpkgs/pkgs/applications/audio/fmit/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/audio/fmit/default.nix b/nixpkgs/pkgs/applications/audio/fmit/default.nix new file mode 100644 index 000000000000..a61f7dc0a905 --- /dev/null +++ b/nixpkgs/pkgs/applications/audio/fmit/default.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchFromGitHub, fftw, qtbase, qtmultimedia, qmake +, alsaSupport ? true, alsaLib ? null +, jackSupport ? false, libjack2 ? null +, portaudioSupport ? false, portaudio ? null }: + +assert alsaSupport -> alsaLib != null; +assert jackSupport -> libjack2 != null; +assert portaudioSupport -> portaudio != null; + +with stdenv.lib; + +stdenv.mkDerivation rec { + name = "fmit-${version}"; + version = "1.1.14"; + + src = fetchFromGitHub { + sha256 = "18gvl8smcnigzldy1acs5h8rscf287b39xi4y2cl5armqbj0y38x"; + rev = "v${version}"; + repo = "fmit"; + owner = "gillesdegottex"; + }; + + nativeBuildInputs = [ qmake ]; + buildInputs = [ fftw qtbase qtmultimedia ] + ++ optionals alsaSupport [ alsaLib ] + ++ optionals jackSupport [ libjack2 ] + ++ optionals portaudioSupport [ portaudio ]; + + postPatch = '' + substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}' + ''; + + preConfigure = '' + qmakeFlags="$qmakeFlags \ + CONFIG+=${optionalString alsaSupport "acs_alsa"} \ + CONFIG+=${optionalString jackSupport "acs_jack"} \ + CONFIG+=${optionalString portaudioSupport "acs_portaudio"} \ + PREFIXSHORTCUT=$out" + ''; + + enableParallelBuilding = true; + + meta = { + description = "Free Musical Instrument Tuner"; + longDescription = '' + FMIT is a graphical utility for tuning musical instruments, with error + and volume history, and advanced features. + ''; + homepage = http://gillesdegottex.github.io/fmit/; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +} |