File tree Expand file tree Collapse file tree 4 files changed +205
-0
lines changed Expand file tree Collapse file tree 4 files changed +205
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ meson ,
6+ ninja ,
7+ pkg-config ,
8+ boost ,
9+ vapoursynth ,
10+ opencl-headers ,
11+ ocl-icd ,
12+ openclSupport ? true ,
13+ } :
14+
15+ stdenv . mkDerivation {
16+ pname = "vapoursynth-eedi3" ;
17+ version = "unstable-2019-09-30" ;
18+
19+ src = fetchFromGitHub {
20+ owner = "HomeOfVapourSynthEvolution" ;
21+ repo = "VapourSynth-EEDI3" ;
22+ rev = "d11bdb37c7a7118cd095b53d9f8fbbac02a06ac0" ;
23+ hash = "sha256-MIUf6sOnJ2uqGw3ixEHy1ijzlLFkQauwtm1vfgmYmcg=" ;
24+ } ;
25+
26+ nativeBuildInputs = [
27+ meson
28+ ninja
29+ pkg-config
30+ ] ;
31+
32+ buildInputs =
33+ [
34+ boost
35+ vapoursynth
36+ ]
37+ ++ lib . optionals openclSupport [
38+ ocl-icd
39+ opencl-headers
40+ ] ;
41+
42+ postPatch = ''
43+ substituteInPlace meson.build \
44+ --replace-fail "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
45+ '' ;
46+
47+ mesonFlags = [ ( lib . mesonBool "opencl" openclSupport ) ] ;
48+
49+ meta = {
50+ description = "Filter for VapourSynth" ;
51+ homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-EEDI3" ;
52+ license = with lib . licenses ; [ gpl2Plus ] ;
53+ maintainers = with lib . maintainers ; [ snaki ] ;
54+ platforms = lib . platforms . x86_64 ;
55+ } ;
56+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ autoreconfHook ,
6+ pkg-config ,
7+ vapoursynth ,
8+ yasm ,
9+ } :
10+
11+ stdenv . mkDerivation ( finalAttrs : {
12+ pname = "vapoursynth-nnedi3" ;
13+ version = "12" ;
14+
15+ src = fetchFromGitHub {
16+ owner = "dubhater" ;
17+ repo = "vapoursynth-nnedi3" ;
18+ rev = "refs/tags/v${ finalAttrs . version } " ;
19+ hash = "sha256-jd/PCXhbCZGMsoXjekbeqMSRVBJAy4INdpkTbZFjVO0=" ;
20+ } ;
21+
22+ nativeBuildInputs = [
23+ autoreconfHook
24+ pkg-config
25+ ] ;
26+
27+ buildInputs = [
28+ vapoursynth
29+ yasm
30+ ] ;
31+
32+ configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ] ;
33+
34+ postInstall = ''
35+ rm -f $out/lib/vapoursynth/*.la
36+ '' ;
37+
38+ meta = {
39+ description = "Filter for VapourSynth" ;
40+ homepage = "https://github.com/dubhater/vapoursynth-nnedi3" ;
41+ license = with lib . licenses ; [ gpl2Plus ] ;
42+ maintainers = with lib . maintainers ; [ snaki ] ;
43+ platforms = with lib . platforms ; x86_64 ++ aarch64 ;
44+ } ;
45+ } )
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ stdenv ,
4+ fetchFromGitHub ,
5+ meson ,
6+ ninja ,
7+ pkg-config ,
8+ boost ,
9+ vapoursynth ,
10+ opencl-headers ,
11+ ocl-icd ,
12+ } :
13+
14+ stdenv . mkDerivation ( finalAttrs : {
15+ pname = "vapoursynth-nnedi3cl" ;
16+ version = "8" ;
17+
18+ src = fetchFromGitHub {
19+ owner = "HomeOfVapourSynthEvolution" ;
20+ repo = "VapourSynth-NNEDI3CL" ;
21+ rev = "refs/tags/r${ finalAttrs . version } " ;
22+ hash = "sha256-zW/qEtZTDJOTarXbXhv+nks25eePutLDpLck4TuMKUk=" ;
23+ } ;
24+
25+ nativeBuildInputs = [
26+ meson
27+ ninja
28+ pkg-config
29+ ] ;
30+
31+ buildInputs = [
32+ boost
33+ vapoursynth
34+ ocl-icd
35+ opencl-headers
36+ ] ;
37+
38+ postPatch = ''
39+ substituteInPlace meson.build \
40+ --replace-fail "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
41+ '' ;
42+
43+ meta = {
44+ description = "Filter for VapourSynth" ;
45+ homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL" ;
46+ license = with lib . licenses ; [ gpl2Plus ] ;
47+ maintainers = with lib . maintainers ; [ snaki ] ;
48+ platforms = lib . platforms . x86_64 ;
49+ } ;
50+ } )
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