mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-15 05:32:26 +01:00
Simon Bruder
3ac96a0fb0
This is done to mirror what is done in nixpkgs (https://github.com/NixOS/nixpkgs/pull/170414).
34 lines
1.1 KiB
Nix
34 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, boost, ocl-icd, opencl-headers, vapoursynth }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "VapourSynth-NNEDI3CL";
|
|
version = "8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
repo = pname;
|
|
rev = "r${version}";
|
|
sha256 = "0j99ihxy295plk1x5flgwzjkcjwyzqdmxnxmda9r632ksq9flvyd";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
buildInputs = [ boost ocl-icd opencl-headers vapoursynth ];
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/86131
|
|
BOOST_INCLUDEDIR = "${lib.getDev boost}/include";
|
|
BOOST_LIBRARYDIR = "${lib.getLib boost}/lib";
|
|
|
|
postPatch = ''
|
|
substituteInPlace meson.build \
|
|
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An OpenCL accelerated nnedi3 filter for VapourSynth";
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ sbruder ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|