vs-overlay/plugins/adaptivegrain/default.nix

28 lines
784 B
Nix

{ lib, fetchgit, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "adaptivegrain";
version = "0.3.1";
src = fetchgit {
url = "https://git.kageru.moe/kageru/${pname}";
rev = version;
sha256 = "1sds08r7as23x7kgfa0w7sqkmzpc4xbccirxjwynybcm25ixpzb4";
};
cargoSha256 = "1fy2n6afn7hxkwxf8l6jdakqpq97rn5dqav1bagzm2n40m37ldfk";
postInstall = ''
mkdir $out/lib/vapoursynth
mv $out/lib/libadaptivegrain_rs.so $out/lib/vapoursynth/libadaptivegrain_rs.so
'';
meta = with lib; {
description = "Reimplementation of the adaptive_grain mask as a Vapoursynth plugin";
homepage = "https://git.kageru.moe/kageru/adaptivegrain";
license = licenses.mit;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}