nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 cmake,
6 alsa-lib,
7 fftwSinglePrec,
8 libjack2,
9 libpulseaudio,
10 libvorbis,
11 soundtouch,
12 qtbase,
13 qtdeclarative,
14 qtgraphicaleffects,
15 qtquickcontrols2,
16 qttools,
17 wrapQtAppsHook,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "nootka";
22 version = "2.0.2";
23
24 src = fetchurl {
25 url = "mirror://sourceforge/nootka/${pname}-${version}-source.tar.bz2";
26 sha256 = "sha256-ZHdyLZ3+TCpQ77tcNuDlN2124qLDZu9DdH5x7RI1HIs=";
27 };
28
29 nativeBuildInputs = [
30 cmake
31 wrapQtAppsHook
32 ];
33 buildInputs = [
34 alsa-lib
35 fftwSinglePrec
36 libjack2
37 libpulseaudio
38 libvorbis
39 soundtouch
40 qtbase
41 qtdeclarative
42 qtgraphicaleffects
43 qtquickcontrols2
44 qttools
45 ];
46
47 cmakeFlags = [
48 "-DCMAKE_INCLUDE_PATH=${lib.getDev libjack2}/include/jack;${lib.getDev libpulseaudio}/include/pulse"
49 "-DENABLE_JACK=ON"
50 "-DENABLE_PULSEAUDIO=ON"
51 ];
52
53 meta = with lib; {
54 description = "Application for practicing playing musical scores and ear training";
55 mainProgram = "nootka";
56 homepage = "https://nootka.sourceforge.io/";
57 license = licenses.gpl3Plus;
58 maintainers = with maintainers; [
59 mmlb
60 orivej
61 ];
62 platforms = platforms.linux;
63 };
64}