From 7ed8c4cbade056a7835876106a6b36f2b84fb113 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Mon, 6 Mar 2023 22:53:45 +0300 Subject: [PATCH] obs-studio-plugins.advanced-scene-switcher: init at 1.20.5 --- .../advanced-scene-switcher/default.nix | 54 +++++++++++++++++++ .../video/obs-studio/plugins/default.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix diff --git a/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix b/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix new file mode 100644 index 000000000000..ffd7cd600d56 --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/advanced-scene-switcher/default.nix @@ -0,0 +1,54 @@ +{ lib +, stdenv +, fetchFromGitHub +, asio +, cmake +, curl +, obs-studio +, opencv +, procps +, qtbase +, websocketpp +, xorg +}: + +stdenv.mkDerivation rec { + pname = "advanced-scene-switcher"; + version = "1.20.5"; + + src = fetchFromGitHub { + owner = "WarmUpTill"; + repo = "SceneSwitcher"; + rev = version; + sha256 = "04k7f7v756vdsan95g73cc29lrs61jis738v37a3ihi3ivps3ma3"; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ + asio + curl + obs-studio + opencv + procps + qtbase + websocketpp + xorg.libXScrnSaver + ]; + + dontWrapQtApps = true; + + postInstall = '' + mkdir $out/lib $out/share + mv $out/obs-plugins/64bit $out/lib/obs-plugins + mv $out/data $out/share/obs + ''; + + meta = { + description = "An automated scene switcher for OBS Studio"; + homepage = "https://github.com/WarmUpTill/SceneSwitcher"; + maintainers = with lib.maintainers; [ paveloom ]; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index c796b2d84fa0..049636dd59d3 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -6,6 +6,8 @@ # - Add plugin to it's own directory (because of future patches). { + advanced-scene-switcher = qt6Packages.callPackage ./advanced-scene-switcher { }; + droidcam-obs = callPackage ./droidcam-obs { }; input-overlay = qt6Packages.callPackage ./input-overlay.nix { };