2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, pkg-config, cmake, alsa-lib, libjack2, dbus, qtbase, qttools, qtx11extras
|
2020-12-25 13:55:36 +00:00
|
|
|
# Enable jack session support
|
|
|
|
, jackSession ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.9.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qjackctl";
|
|
|
|
|
|
|
|
# some dependencies such as killall have to be installed additionally
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rncbc";
|
|
|
|
repo = "qjackctl";
|
2021-01-17 00:15:33 +00:00
|
|
|
rev = "${pname}_${lib.replaceChars ["."] ["_"] version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-20oy3R0gbVXO3Da80cTYXu+BG8OfVNRLtAwHk8nRFJk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
libjack2
|
|
|
|
dbus
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCONFIG_JACK_VERSION=1"
|
|
|
|
"-DCONFIG_JACK_SESSION=${toString jackSession}"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Qt application to control the JACK sound server daemon";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://github.com/rncbc/qjackctl";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|