depot/third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-replay-source.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

40 lines
906 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, cmake
, libcaption
, obs-studio
, qtbase
}:
stdenv.mkDerivation (finalAttrs: {
pname = "obs-replay-source";
version = "1.6.13";
src = fetchFromGitHub {
owner = "exeldro";
repo = "obs-replay-source";
rev = finalAttrs.version;
sha256 = "sha256-i64rpIVnUplA9AKZtR3xeByeawca7B00kGmEcKi7DWQ=";
};
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 ];
};
})