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