vs-overlay/plugins/tcanny/default.nix
Simon Bruder 74b6413005 vapoursynthPlugins: stdenv.lib -> lib
stdenv.lib is deprecated and nixpkgs is currently switching to lib.
2021-05-29 16:30:09 -06:00

32 lines
935 B
Nix

{ 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 lib; {
description = "TCanny filter for VapourSynth";
homepage = https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TCanny;
license = licenses.gpl2;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.all;
};
}