From b1b38397f74e21195a520c1649394d208f9a9a26 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 21 Jun 2023 09:09:35 +0100 Subject: [PATCH] obs-studio-plugins.obs-transition-table: init at 0.2.6 --- .../video/obs-studio/plugins/default.nix | 2 + .../plugins/obs-transition-table.nix | 40 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/applications/video/obs-studio/plugins/obs-transition-table.nix diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index fdb2b43d9735..ff97721c961c 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -38,6 +38,8 @@ obs-teleport = callPackage ./obs-teleport { }; + obs-transition-table = qt6Packages.callPackage ./obs-transition-table.nix { }; + obs-vaapi = callPackage ./obs-vaapi { }; obs-vkcapture = callPackage ./obs-vkcapture.nix { diff --git a/pkgs/applications/video/obs-studio/plugins/obs-transition-table.nix b/pkgs/applications/video/obs-studio/plugins/obs-transition-table.nix new file mode 100644 index 000000000000..f72e1756c41d --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-transition-table.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, obs-studio +, qtbase +}: + +stdenv.mkDerivation rec { + pname = "obs-transition-table"; + version = "0.2.6"; + + src = fetchFromGitHub { + owner = "exeldro"; + repo = "obs-transition-table"; + rev = version; + sha256 = "sha256-Is2XWMPhqd/rd6cXc40eSZTvSRpbroTBzM4SPfHOWPg="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ obs-studio qtbase ]; + + cmakeFlags = [ + "-DBUILD_OUT_OF_TREE=On" + ]; + + dontWrapQtApps = true; + + postInstall = '' + rm -rf $out/obs-plugins $out/data + ''; + + meta = with lib; { + description = "Plugin for OBS Studio to add a Transition Table to the tools menu."; + homepage = "https://github.com/exeldro/obs-transition-table"; + maintainers = with maintainers; [ flexiondotorg ]; + license = licenses.gpl2Plus; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +}