vapoursynthPlugins.adaptivegrain: init at 0.3.1

This commit is contained in:
Simon Bruder 2021-01-23 11:03:52 +01:00 committed by Tadeo Kondrak
parent 3c6a1242a6
commit 883ba6026e
2 changed files with 28 additions and 0 deletions

View file

@ -1,5 +1,6 @@
self: super: { self: super: {
vapoursynthPlugins = super.recurseIntoAttrs { vapoursynthPlugins = super.recurseIntoAttrs {
adaptivegrain = super.callPackage ./plugins/adaptivegrain { };
addgrain = super.callPackage ./plugins/addgrain { }; addgrain = super.callPackage ./plugins/addgrain { };
autocrop = super.callPackage ./plugins/autocrop { }; autocrop = super.callPackage ./plugins/autocrop { };
awarpsharp2 = super.callPackage ./plugins/awarpsharp2 { }; awarpsharp2 = super.callPackage ./plugins/awarpsharp2 { };

View file

@ -0,0 +1,27 @@
{ 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;
};
}