vs-overlay/plugins/tcanny/default.nix

32 lines
942 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth, boost, opencl-headers, ocl-icd }:
stdenv.mkDerivation rec {
pname = "vapoursynth-tcanny";
version = "r12";
src = fetchFromGitHub {
owner = "HomeOfVapourSynthEvolution";
repo = "VapourSynth-TCanny";
rev = version;
sha256 = "1jsvgxb94klqwh40820zfw8radrnlr3w3lf2kkzjp6r97kgr5i37";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ vapoursynth boost opencl-headers ocl-icd ];
installPhase =
let
ext = stdenv.targetPlatform.extensions.sharedLibrary;
in ''
install -D libtcanny${ext} $out/lib/vapoursynth/libtcanny${ext}
'';
meta = with stdenv.lib; {
description = "TCanny filter for VapourSynth";
homepage = https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TCanny;
license = licenses.gpl2;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}