mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-12-22 22:11:29 +01:00
vapoursynthPlugins.znedi3: init at r2
This commit is contained in:
parent
1031932821
commit
3c6a1242a6
|
@ -28,5 +28,6 @@ self: super: {
|
|||
tcanny = super.callPackage ./plugins/tcanny { };
|
||||
tnlmeans = super.callPackage ./plugins/tnlmeans { };
|
||||
wwxd = super.callPackage ./plugins/wwxd { };
|
||||
znedi3 = super.callPackage ./plugins/znedi3 { };
|
||||
};
|
||||
}
|
||||
|
|
50
plugins/znedi3/default.nix
Normal file
50
plugins/znedi3/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, vapoursynth }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "znedi3";
|
||||
version = "r2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sekrit-twc";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1p6563s1b52qisvvwid047jd376sz737lggwfhanci0sqxxphhrb";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# use system vapoursynth headers (adapted from AUR PKGBUILD)
|
||||
rm -rf vsxx/{VapourSynth,VSScript,VSHelper}.h
|
||||
|
||||
substituteInPlace vsxx/VapourSynth++.hpp \
|
||||
--replace '"VapourSynth.h"' '<VapourSynth.h>' \
|
||||
--replace '"VSHelper.h"' '<VSHelper.h>'
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace "VSScript.h" "" \
|
||||
--replace "VapourSynth.h" "" \
|
||||
--replace "VSHelper.h" ""
|
||||
'';
|
||||
|
||||
buildInputs = [ vapoursynth ];
|
||||
|
||||
makeFlags = (lib.optional stdenv.isx86_64 "X86=1");
|
||||
|
||||
CPPFLAGS = lib.concatStringsSep " " [
|
||||
"-I${vapoursynth}/include/vapoursynth"
|
||||
"-DNNEDI3_WEIGHTS_PATH=\\\"\"${placeholder "out"}/share/znedi3/nnedi3_weights.bin\"\\\""
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D vsznedi3.so $out/lib/vapoursynth/libvsznedi3.so
|
||||
install -D nnedi3_weights.bin $out/share/znedi3/nnedi3_weights.bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A CPU optimised nnedi3 filter for VapourSynth";
|
||||
homepage = "https://github.com/sekrit-twc/znedi3";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ sbruder ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue