depot/third_party/nixpkgs/pkgs/applications/video/obs-studio/plugins/obs-composite-blur.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

42 lines
975 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, obs-studio
, cmake
}:
stdenv.mkDerivation rec {
pname = "obs-composite-blur";
version = "1.1.0";
src = fetchFromGitHub {
owner = "FiniteSingularity";
repo = "obs-composite-blur";
rev = "refs/tags/v${version}";
hash = "sha256-icn0X+c7Uf0nTFaVDVTPi26sfWTSeoAj7+guEn9gi9Y=";
};
buildInputs = [
obs-studio
];
nativeBuildInputs = [
cmake
];
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"
'';
meta = with lib; {
description = "Comprehensive blur plugin for OBS that provides several different blur algorithms, and proper compositing";
homepage = "https://github.com/FiniteSingularity/obs-composite-blur";
license = licenses.gpl2Only;
maintainers = with maintainers; [ GaetanLepage ];
mainProgram = "obs-composite-blur";
platforms = platforms.linux;
};
}