From c25347d89ef54d9af265e03bf17371583befac5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=B0=D1=80=D0=B8=D0=BA?= <65870+suhr@users.noreply.github.com> Date: Sun, 29 Nov 2020 20:31:42 +0300 Subject: [PATCH] qjackctl: add `jackSession` option --- pkgs/applications/audio/qjackctl/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/qjackctl/default.nix b/pkgs/applications/audio/qjackctl/default.nix index 8cb28dcfd5af..571fb0a09cc9 100644 --- a/pkgs/applications/audio/qjackctl/default.nix +++ b/pkgs/applications/audio/qjackctl/default.nix @@ -1,4 +1,8 @@ -{ stdenv, mkDerivation, fetchurl, pkgconfig, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras }: +{ stdenv, mkDerivation, fetchurl +, pkg-config, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras +# Enable jack session support +, jackSession ? false +}: mkDerivation rec { version = "0.6.3"; @@ -20,9 +24,12 @@ mkDerivation rec { dbus ]; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkg-config ]; - configureFlags = [ "--enable-jack-version" ]; + configureFlags = [ + "--enable-jack-version" + (stdenv.lib.strings.enableFeature jackSession "jack-session") + ]; meta = with stdenv.lib; { description = "A Qt application to control the JACK sound server daemon";