2021-01-22 17:10:08 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth, fftwSinglePrec }:
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vapoursynth-bm3d";
|
2022-05-27 22:44:08 +02:00
|
|
|
version = "9";
|
2019-06-26 01:40:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
repo = "VapourSynth-BM3D";
|
2022-05-27 22:44:08 +02:00
|
|
|
rev = "r${version}";
|
2022-04-25 11:43:33 +02:00
|
|
|
sha256 = "sha256-i7Kk7uFt2Wo/EWpVkGyuYgGZxBuQgOT3JM+WCFPHVrc=";
|
2019-06-26 01:40:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
buildInputs = [ vapoursynth fftwSinglePrec ];
|
|
|
|
|
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 = "BM3D denoising filter for VapourSynth";
|
2021-01-22 17:22:37 +01:00
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-BM3D";
|
2019-06-26 01:40:02 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|