diff options
author | Philipp Schmitt <philipp@schmitt.co> | 2023-08-29 20:41:45 +0200 |
---|---|---|
committer | Philipp Schmitt <philipp@schmitt.co> | 2023-08-29 21:13:22 +0200 |
commit | 049871afaf583f984d1440f64620757c6ad87c8d (patch) | |
tree | 1f87eed97cd030b4df984789371c0e9f3b4e462e /pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix | |
parent | 4d1c96e59b6f46a9538fa49f586049850f1f4110 (diff) |
obs-studio-plugins.obs-replay-source: init at 1.6.12
Diffstat (limited to 'pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix')
-rw-r--r-- | pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix b/pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix new file mode 100644 index 0000000000000..994a56d4c86dd --- /dev/null +++ b/pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix @@ -0,0 +1,40 @@ +{ stdenv +, lib +, fetchFromGitHub +, cmake +, libcaption +, obs-studio +, qtbase +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "obs-replay-source"; + version = "1.6.12"; + + src = fetchFromGitHub { + owner = "exeldro"; + repo = "obs-replay-source"; + rev = finalAttrs.version; + sha256 = "sha256-MzugH6r/jY5Kg7GIR8/o1BN36FenBzMnqrPUceJmbPs="; + }; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ libcaption obs-studio qtbase ]; + + postInstall = '' + mkdir -p "$out/lib" "$out/share" + mv "$out/obs-plugins/64bit" "$out/lib/obs-plugins" + rm -rf "$out/obs-plugins" + mv "$out/data" "$out/share/obs" + ''; + + dontWrapQtApps = true; + + meta = with lib; { + description = "Replay source for OBS studio"; + homepage = "https://github.com/exeldro/obs-replay-source"; + license = licenses.gpl2Only; + platforms = platforms.linux; + maintainers = with maintainers; [ pschmitt ]; + }; +}) |