diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index 38e81d407f34..5c014942f53d 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -52,6 +52,8 @@ obs-vaapi = callPackage ./obs-vaapi { }; + obs-vertical-canvas = qt6Packages.callPackage ./obs-vertical-canvas.nix { }; + obs-vintage-filter = callPackage ./obs-vintage-filter.nix { }; obs-vkcapture = callPackage ./obs-vkcapture.nix { diff --git a/pkgs/applications/video/obs-studio/plugins/obs-vertical-canvas.nix b/pkgs/applications/video/obs-studio/plugins/obs-vertical-canvas.nix new file mode 100644 index 000000000000..a92acb29a90f --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-vertical-canvas.nix @@ -0,0 +1,42 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, curl +, obs-studio +, qtbase +}: + +stdenv.mkDerivation rec { + pname = "obs-vertical-canvas"; + version = "1.2.2"; + + src = fetchFromGitHub { + owner = "Aitum"; + repo = "obs-vertical-canvas"; + rev = version; + sha256 = "sha256-9NXIJPF6ubd9M3t5pmSQvADoLmm+XolRhIvhbqw9R04="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ curl obs-studio qtbase ]; + + cmakeFlags = [ + "-DBUILD_OUT_OF_TREE=On" + ]; + + dontWrapQtApps = true; + + postInstall = '' + rm -rf $out/data + rm -rf $out/obs-plugins + ''; + + meta = with lib; { + description = "Plugin for OBS Studio to add vertical canvas"; + homepage = "https://github.com/Aitum/obs-vertical-canvas"; + maintainers = with maintainers; [ flexiondotorg ]; + license = licenses.gpl2Plus; + platforms = [ "x86_64-linux" "i686-linux" ]; + }; +}