1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 obs-studio,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "obs-retro-effects";
11 version = "1.0.0";
12
13 src = fetchFromGitHub {
14 owner = "FiniteSingularity";
15 repo = "obs-retro-effects";
16 rev = "${version}";
17 sha256 = "sha256-+dg5ySleMb9abT9kIM7HvRSRx9V08B9XPjfoAVe+tWY=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21 buildInputs = [ obs-studio ];
22
23 postFixup = ''
24 mv $out/data/obs-plugins/${pname}/shaders $out/share/obs/obs-plugins/${pname}/
25 rm -rf $out/obs-plugins
26 rm -rf $out/data
27 '';
28
29 meta = with lib; {
30 description = "Collection of OBS filters to give your stream that retro feel";
31 homepage = "https://github.com/FiniteSingularity/obs-retro-effects";
32 maintainers = with maintainers; [ flexiondotorg ];
33 license = licenses.gpl2Plus;
34 platforms = [
35 "x86_64-linux"
36 "i686-linux"
37 ];
38 };
39}