anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / nootka / default.nix
bloba52c5bb98176a0e979ee14ee4e60b007f61479a1
1 { lib, stdenv, fetchurl, cmake
2 , alsa-lib, fftwSinglePrec, libjack2, libpulseaudio, libvorbis, soundtouch
3 , qtbase, qtdeclarative, qtgraphicaleffects, qtquickcontrols2, qttools, wrapQtAppsHook
4 }:
6 stdenv.mkDerivation rec {
7   pname = "nootka";
8   version = "2.0.2";
10   src = fetchurl {
11     url = "mirror://sourceforge/nootka/${pname}-${version}-source.tar.bz2";
12     sha256 = "sha256-ZHdyLZ3+TCpQ77tcNuDlN2124qLDZu9DdH5x7RI1HIs=";
13   };
15   nativeBuildInputs = [ cmake wrapQtAppsHook ];
16   buildInputs = [
17     alsa-lib
18     fftwSinglePrec
19     libjack2
20     libpulseaudio
21     libvorbis
22     soundtouch
23     qtbase
24     qtdeclarative
25     qtgraphicaleffects
26     qtquickcontrols2
27     qttools
28   ];
30   cmakeFlags = [
31     "-DCMAKE_INCLUDE_PATH=${lib.getDev libjack2}/include/jack;${lib.getDev libpulseaudio}/include/pulse"
32     "-DENABLE_JACK=ON"
33     "-DENABLE_PULSEAUDIO=ON"
34   ];
36   meta = with lib; {
37     description = "Application for practicing playing musical scores and ear training";
38     mainProgram = "nootka";
39     homepage = "https://nootka.sourceforge.io/";
40     license = licenses.gpl3Plus;
41     maintainers = with maintainers; [ mmlb orivej ];
42     platforms = platforms.linux;
43   };