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 {
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.9.7";
|
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";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "${pname}_${lib.replaceStrings ["."] ["_"] version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-PchW9cM5qEP51G9RXUZ3j/AvKqTkgNiw3esqSQqsy0M=";
|
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;
|
|
|
|
};
|
|
|
|
}
|