2021-01-22 17:10:08 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }:
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vapoursynth-addgrain";
|
2022-05-27 22:44:08 +02:00
|
|
|
version = "8";
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
repo = "VapourSynth-AddGrain";
|
2022-05-27 22:44:08 +02:00
|
|
|
rev = "r${version}";
|
2021-01-22 15:17:22 +01:00
|
|
|
sha256 = "0qfazdifs1nq5ll6nvfvy3w9m28s2llm5i203ak6qf0bf98jnh4j";
|
2019-06-26 01:40:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ vapoursynth ];
|
|
|
|
|
2021-01-22 16:50:31 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
|
|
|
|
'';
|
2019-06-26 01:40:02 +02:00
|
|
|
|
2021-01-22 17:10:08 +01:00
|
|
|
meta = with lib; {
|
2019-06-26 01:40:02 +02:00
|
|
|
description = "AddGrain filter for VapourSynth";
|
2021-01-22 17:22:37 +01:00
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-AddGrain";
|
2019-06-26 01:40:02 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|