From 7972b14809408677099bfa40d31940365067728f Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 19 May 2025 16:49:12 +0100 Subject: [PATCH] obs-studio-plugins.obs-aitum-multistream: init at 1.0.7 Co-authored-by: emaryn <197520219+emaryn@users.noreply.github.com> Co-authored-by: Peder Bergebakken Sundt --- .../video/obs-studio/plugins/default.nix | 2 + .../plugins/obs-aitum-multistream.nix | 51 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 pkgs/applications/video/obs-studio/plugins/obs-aitum-multistream.nix diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index 8019aa4a8b3a..a0d0b240bf3f 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -22,6 +22,8 @@ obs-advanced-masks = callPackage ./obs-advanced-masks.nix { }; + obs-aitum-multistream = qt6Packages.callPackage ./obs-aitum-multistream.nix { }; + obs-backgroundremoval = callPackage ./obs-backgroundremoval { }; obs-color-monitor = qt6Packages.callPackage ./obs-color-monitor.nix { }; diff --git a/pkgs/applications/video/obs-studio/plugins/obs-aitum-multistream.nix b/pkgs/applications/video/obs-studio/plugins/obs-aitum-multistream.nix new file mode 100644 index 000000000000..c97b47e98266 --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-aitum-multistream.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + curl, + obs-studio, + qtbase, +}: + +stdenv.mkDerivation rec { + pname = "obs-aitum-multistream"; + version = "1.0.7"; + + src = fetchFromGitHub { + owner = "Aitum"; + repo = "obs-aitum-multistream"; + tag = version; + hash = "sha256-TqddyTBRWLyfwYi9I0nQE8Z19YL2RwkZqUwi7F9XpwQ="; + }; + + # Fix FTBFS with Qt >= 6.8 + prePatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail 'find_qt(COMPONENTS Widgets Core)' 'find_package(Qt6 REQUIRED COMPONENTS Core Widgets)' + ''; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ + curl + obs-studio + qtbase + ]; + dontWrapQtApps = true; + + cmakeFlags = [ + # Prevent deprecation warnings from failing the build + (lib.cmakeOptionType "string" "CMAKE_CXX_FLAGS" "-Wno-error=deprecated-declarations") + ]; + + meta = { + description = "Plugin to stream everywhere from a single instance of OBS"; + homepage = "https://github.com/Aitum/obs-aitum-multistream"; + maintainers = with lib.maintainers; [ flexiondotorg ]; + license = lib.licenses.gpl2Plus; + platforms = [ + "x86_64-linux" + "i686-linux" + ]; + }; +}