From 26f7df6b6a0e4dfd2f13036d598aece17f760e6b Mon Sep 17 00:00:00 2001 From: Christoph Neidahl Date: Thu, 10 Jan 2019 22:58:20 +0100 Subject: [PATCH] obs-studio: add new optional dependencies This commit adds a new set of optional dependencies introduced with version 21.0 of OBS to allow Lua and Python 3 scripts to be run. If this batch of new dependencies is not desired by the user, then they may set `scriptingSupport` to false to disable it. --- pkgs/applications/video/obs-studio/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index c98acda9eea0..579d5566f134 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -21,6 +21,11 @@ , vlc , mbedtls +, scriptingSupport ? true +, luajit +, swig +, python3 + , alsaSupport ? false , alsaLib , pulseaudioSupport ? false @@ -68,6 +73,7 @@ in stdenv.mkDerivation rec { makeWrapper mbedtls ] + ++ optional scriptingSupport [ luajit swig python3 ] ++ optional alsaSupport alsaLib ++ optional pulseaudioSupport libpulseaudio;