From 563c6e2009a5178de99e16c26dfdc1d66a31f9fe Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 26 Apr 2023 14:05:21 +0100 Subject: [PATCH] obs-studio-plugins.obs-source-switcher: init at unstable-2023-04-19 --- .../video/obs-studio/plugins/default.nix | 2 + .../plugins/obs-source-switcher.nix | 37 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index 394203bf391f..38e81d407f34 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -44,6 +44,8 @@ obs-source-record = callPackage ./obs-source-record.nix { }; + obs-source-switcher = callPackage ./obs-source-switcher.nix { }; + obs-teleport = callPackage ./obs-teleport { }; obs-transition-table = qt6Packages.callPackage ./obs-transition-table.nix { }; diff --git a/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix b/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix new file mode 100644 index 000000000000..b336ddf91203 --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-source-switcher.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, obs-studio +}: + +stdenv.mkDerivation rec { + pname = "obs-source-switcher"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "exeldro"; + repo = "obs-source-switcher"; + rev = "8babf207d140e52114b6db63d98749d7a0a2758b"; + sha256 = "sha256-J/NdIGsSXCtSOGF72pJZqqN5Y73eJfrA72LgZcTlP5o="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ obs-studio ]; + + cmakeFlags = [ + "-DBUILD_OUT_OF_TREE=On" + ]; + + postInstall = '' + rm -rf $out/obs-plugins $out/data + ''; + + meta = with lib; { + description = "Plugin for OBS Studio to switch between a list of sources"; + homepage = "https://github.com/exeldro/obs-source-switcher"; + maintainers = with maintainers; [ flexiondotorg ]; + license = licenses.gpl2Plus; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +}