2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, cmake
|
2022-07-25 23:56:28 +02:00
|
|
|
, alsa-lib, fftwSinglePrec, libjack2, libpulseaudio, libvorbis, soundtouch
|
|
|
|
, qtbase, qtdeclarative, qtgraphicaleffects, qtquickcontrols2, qttools, wrapQtAppsHook
|
2020-03-27 00:07:09 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 12:34:30 +02:00
|
|
|
pname = "nootka";
|
2022-07-25 23:56:28 +02:00
|
|
|
version = "2.0.2";
|
2020-03-27 00:07:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 12:34:30 +02:00
|
|
|
url = "mirror://sourceforge/nootka/${pname}-${version}-source.tar.bz2";
|
2022-07-25 23:56:28 +02:00
|
|
|
sha256 = "sha256-ZHdyLZ3+TCpQ77tcNuDlN2124qLDZu9DdH5x7RI1HIs=";
|
2020-03-27 00:07:09 +01:00
|
|
|
};
|
|
|
|
|
2022-07-25 23:56:28 +02:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
2020-03-27 00:07:09 +01:00
|
|
|
buildInputs = [
|
2022-07-25 23:56:28 +02:00
|
|
|
alsa-lib
|
|
|
|
fftwSinglePrec
|
|
|
|
libjack2
|
|
|
|
libpulseaudio
|
|
|
|
libvorbis
|
|
|
|
soundtouch
|
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtquickcontrols2
|
|
|
|
qttools
|
2020-03-27 00:07:09 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2023-05-06 14:44:42 +02:00
|
|
|
"-DCMAKE_INCLUDE_PATH=${lib.getDev libjack2}/include/jack;${lib.getDev libpulseaudio}/include/pulse"
|
2020-03-27 00:07:09 +01:00
|
|
|
"-DENABLE_JACK=ON"
|
|
|
|
"-DENABLE_PULSEAUDIO=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-27 00:07:09 +01:00
|
|
|
description = "Application for practicing playing musical scores and ear training";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "nootka";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://nootka.sourceforge.io/";
|
2020-03-27 00:07:09 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2022-07-25 23:56:28 +02:00
|
|
|
maintainers = with maintainers; [ mmlb orivej ];
|
2020-03-27 00:07:09 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|