1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 cmake,
7 obs-studio,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "obs-recursion-effect";
12 version = "0.1.0";
13
14 src = fetchFromGitHub {
15 owner = "exeldro";
16 repo = "obs-recursion-effect";
17 tag = "${finalAttrs.version}";
18 hash = "sha256-PeWJy423QbX4NULuS15LJ/IR/W+tXCJD9TjZdJOGk6A=";
19 };
20
21 nativeBuildInputs = [ cmake ];
22 buildInputs = [ obs-studio ];
23
24 # Fix OBS API deprecations warnings
25 patches = [
26 (fetchpatch {
27 url = "https://github.com/exeldro/obs-recursion-effect/commit/889a8484d5c0eb33267b44ccda545a8fadc189a5.diff";
28 hash = "sha256-J2GnsoPUTqvEkuBuAae2TrxXMQg0Sm3dq75ZjGN65IE=";
29 })
30 ];
31
32 postInstall = ''
33 rm -rf $out/obs-plugins $out/data
34 '';
35
36 meta = {
37 description = "Plugin for OBS Studio to add recursion effect to a source using a filter";
38 homepage = "https://github.com/exeldro/obs-recursion-effect";
39 maintainers = with lib.maintainers; [ flexiondotorg ];
40 license = lib.licenses.gpl2Only;
41 platforms = lib.platforms.linux;
42 };
43})