2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
2021-06-10 04:57:09 +02:00
|
|
|
, pkg-config, cmake, alsa-lib, libjack2, dbus, qtbase, qttools, qtx11extras
|
2020-11-29 18:31:42 +01:00
|
|
|
# Enable jack session support
|
|
|
|
, jackSession ? false
|
|
|
|
}:
|
2008-08-18 18:03:21 +02:00
|
|
|
|
2019-08-04 22:51:44 +02:00
|
|
|
mkDerivation rec {
|
2020-12-24 12:35:40 +01:00
|
|
|
version = "0.9.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "qjackctl";
|
2008-08-18 18:03:21 +02:00
|
|
|
|
2010-07-28 20:01:17 +02:00
|
|
|
# some dependencies such as killall have to be installed additionally
|
|
|
|
|
2020-12-24 12:35:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rncbc";
|
|
|
|
repo = "qjackctl";
|
2021-01-15 14:21:58 +01:00
|
|
|
rev = "${pname}_${lib.replaceChars ["."] ["_"] version}";
|
2020-12-24 12:35:40 +01:00
|
|
|
sha256 = "044kgwk7pfywad4myza0s2kvfkl21zkqq5wgny7n3c43qlcgs3zr";
|
2008-08-18 18:03:21 +02:00
|
|
|
};
|
|
|
|
|
2016-11-01 19:48:10 +01:00
|
|
|
buildInputs = [
|
2017-02-03 16:19:44 +01:00
|
|
|
qtbase
|
|
|
|
qtx11extras
|
|
|
|
qttools
|
2021-06-10 04:57:09 +02:00
|
|
|
alsa-lib
|
2016-05-04 23:49:16 +02:00
|
|
|
libjack2
|
2016-11-01 19:48:10 +01:00
|
|
|
dbus
|
2016-05-04 23:49:16 +02:00
|
|
|
];
|
2008-08-18 18:03:21 +02:00
|
|
|
|
2020-12-24 12:35:40 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
2017-02-28 16:29:45 +01:00
|
|
|
|
2020-12-24 12:35:40 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCONFIG_JACK_VERSION=1"
|
|
|
|
"-DCONFIG_JACK_SESSION=${toString jackSession}"
|
2020-11-29 18:31:42 +01:00
|
|
|
];
|
2013-02-03 16:58:11 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-02-03 16:58:11 +01:00
|
|
|
description = "A Qt application to control the JACK sound server daemon";
|
2020-12-24 12:35:40 +01:00
|
|
|
homepage = "https://github.com/rncbc/qjackctl";
|
2015-10-25 18:59:47 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
2008-08-18 18:03:21 +02:00
|
|
|
};
|
|
|
|
}
|