File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
pkgs/by-name/va/vapoursynth-znedi3 Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ vapoursynth ,
6+ } :
7+
8+ stdenv . mkDerivation {
9+ pname = "vapoursynth-znedi3" ;
10+ version = "unstable-2023-07-09" ;
11+
12+ src = fetchFromGitHub {
13+ fetchSubmodules = true ;
14+ owner = "sekrit-twc" ;
15+ repo = "znedi3" ;
16+ rev = "68dc130bc37615fd912d1dc1068261f00f54b146" ;
17+ hash = "sha256-QC+hMMfp6XwW4PqsN6sip1Y7ttiYn/xuxq/pUg/trog=" ;
18+ } ;
19+
20+ buildInputs = [ vapoursynth ] ;
21+
22+ postPatch = ''
23+ rm -rf vsxx/vapoursynth
24+ ln -s ${ vapoursynth } /include/vapoursynth vsxx/vapoursynth
25+ '' ;
26+
27+ makeFlags =
28+ [ "CPPFLAGS=-DNNEDI3_WEIGHTS_PATH='\" $(out)/share/nnedi3/nnedi3_weights.bin\" '" ]
29+ ++ lib . optionals stdenv . hostPlatform . isx86 [
30+ "X86=1"
31+ "X86_AVX512=1"
32+ ] ;
33+
34+ installPhase = ''
35+ runHook preInstall
36+
37+ install -D -t $out/lib/vapoursynth vsznedi3${ stdenv . hostPlatform . extensions . sharedLibrary }
38+ install -D -m644 -t $out/share/nnedi3 nnedi3_weights.bin
39+
40+ runHook postInstall
41+ '' ;
42+
43+ meta = {
44+ inherit ( vapoursynth . meta ) platforms ;
45+ description = "Filter for VapourSynth" ;
46+ homepage = "https://github.com/sekrit-twc/znedi3" ;
47+ license = with lib . licenses ; [
48+ gpl2Plus
49+ wtfpl
50+ lgpl21
51+ ] ;
52+ maintainers = with lib . maintainers ; [ snaki ] ;
53+ } ;
54+ }
You can’t perform that action at this time.
0 commit comments