nixpkgs/pkgs/applications/audio/qjackctl/default.nix

47 lines
1.0 KiB
Nix
Raw Normal View History

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