diff options
author | Philipp Schmitt <philipp@schmitt.co> | 2023-08-26 20:33:43 +0200 |
---|---|---|
committer | Philipp Schmitt <philipp@schmitt.co> | 2023-08-28 15:26:10 +0200 |
commit | fc0e6da3781a8eabf960339dffff849d6c3cf508 (patch) | |
tree | 8169efb310c32eb2b53f6599e3fbfdd86bed9cfc | |
parent | c8aef93daea3d1f5e7edd2399a80da3b507e87a6 (diff) |
obs-studio-plugins.obs-freeze-filter: init at 0.3.3
-rw-r--r-- | pkgs/applications/video/obs-studio/plugins/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/video/obs-studio/plugins/obs-freeze-filter.nix | 40 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/video/obs-studio/plugins/default.nix b/pkgs/applications/video/obs-studio/plugins/default.nix index 086f6285a5ed2..63bad0fe64591 100644 --- a/pkgs/applications/video/obs-studio/plugins/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/default.nix @@ -20,6 +20,8 @@ obs-command-source = callPackage ./obs-command-source.nix { }; + obs-freeze-filter = qt6Packages.callPackage ./obs-freeze-filter.nix { }; + obs-gradient-source = callPackage ./obs-gradient-source.nix { }; obs-gstreamer = callPackage ./obs-gstreamer.nix { }; diff --git a/pkgs/applications/video/obs-studio/plugins/obs-freeze-filter.nix b/pkgs/applications/video/obs-studio/plugins/obs-freeze-filter.nix new file mode 100644 index 0000000000000..1460e77fbf86c --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-freeze-filter.nix @@ -0,0 +1,40 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, obs-studio +, qtbase +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "obs-freeze-filter"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "exeldro"; + repo = "obs-freeze-filter"; + rev = finalAttrs.version; + sha256 = "sha256-CaHBTfdk8VFjmiclG61elj35glQafgz5B4ENo+7J35o="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ obs-studio qtbase ]; + + postInstall = '' + rm -rf "$out/share" + mkdir -p "$out/share/obs" + mv "$out/data/obs-plugins" "$out/share/obs" + rm -rf "$out/obs-plugins" "$out/data" + ''; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Plugin for OBS Studio to freeze a source using a filter"; + homepage = "https://github.com/exeldro/obs-freeze-filter"; + license = licenses.gpl2Only; + platforms = platforms.linux; + maintainers = with maintainers; [ pschmitt ]; + }; +}) |