From 40a81539739d7be0048d57d42822a04a95ef98e1 Mon Sep 17 00:00:00 2001 From: emily Date: Sat, 3 Aug 2024 00:42:28 +0200 Subject: [PATCH 1/5] maintainers: add snaki --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b670176d03ea..eced90f32981 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19070,6 +19070,13 @@ githubId = 602439; name = "Serguei Narojnyi"; }; + snaki = { + email = "ek@kyouma.net"; + matrix = "@snaki:kescher.at"; + name = "emily"; + github = "snaakey"; + githubId = 38018554; + }; snapdgn = { email = "snapdgn@proton.me"; name = "Nitish Kumar"; From 78e61aaed0ca9413ae94c889dc24d75bf346a48b Mon Sep 17 00:00:00 2001 From: emily Date: Sun, 4 Aug 2024 13:49:37 +0200 Subject: [PATCH 2/5] vapoursynth-eedi3: init at unstable-2019-09-30 --- pkgs/by-name/va/vapoursynth-eedi3/package.nix | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pkgs/by-name/va/vapoursynth-eedi3/package.nix diff --git a/pkgs/by-name/va/vapoursynth-eedi3/package.nix b/pkgs/by-name/va/vapoursynth-eedi3/package.nix new file mode 100644 index 000000000000..3a5f8b5de6a4 --- /dev/null +++ b/pkgs/by-name/va/vapoursynth-eedi3/package.nix @@ -0,0 +1,56 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + boost, + vapoursynth, + opencl-headers, + ocl-icd, + openclSupport ? true, +}: + +stdenv.mkDerivation { + pname = "vapoursynth-eedi3"; + version = "unstable-2019-09-30"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = "VapourSynth-EEDI3"; + rev = "d11bdb37c7a7118cd095b53d9f8fbbac02a06ac0"; + hash = "sha256-MIUf6sOnJ2uqGw3ixEHy1ijzlLFkQauwtm1vfgmYmcg="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = + [ + boost + vapoursynth + ] + ++ lib.optionals openclSupport [ + ocl-icd + opencl-headers + ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + mesonFlags = [ (lib.mesonBool "opencl" openclSupport) ]; + + meta = { + description = "Filter for VapourSynth"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-EEDI3"; + license = with lib.licenses; [ gpl2Plus ]; + maintainers = with lib.maintainers; [ snaki ]; + platforms = lib.platforms.x86_64; + }; +} From 298aa2a75e058473a2026b8536c50f2dd73013c7 Mon Sep 17 00:00:00 2001 From: emily Date: Sun, 4 Aug 2024 15:26:35 +0200 Subject: [PATCH 3/5] vapoursynth-nnedi3cl: init at r8 --- .../va/vapoursynth-nnedi3cl/package.nix | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pkgs/by-name/va/vapoursynth-nnedi3cl/package.nix diff --git a/pkgs/by-name/va/vapoursynth-nnedi3cl/package.nix b/pkgs/by-name/va/vapoursynth-nnedi3cl/package.nix new file mode 100644 index 000000000000..14fb147ecc70 --- /dev/null +++ b/pkgs/by-name/va/vapoursynth-nnedi3cl/package.nix @@ -0,0 +1,50 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + pkg-config, + boost, + vapoursynth, + opencl-headers, + ocl-icd, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "vapoursynth-nnedi3cl"; + version = "8"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = "VapourSynth-NNEDI3CL"; + rev = "refs/tags/r${finalAttrs.version}"; + hash = "sha256-zW/qEtZTDJOTarXbXhv+nks25eePutLDpLck4TuMKUk="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + boost + vapoursynth + ocl-icd + opencl-headers + ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace-fail "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + meta = { + description = "Filter for VapourSynth"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL"; + license = with lib.licenses; [ gpl2Plus ]; + maintainers = with lib.maintainers; [ snaki ]; + platforms = lib.platforms.x86_64; + }; +}) From 78b5722e3e3b9ad077f24a6bc962daa2aaf273d4 Mon Sep 17 00:00:00 2001 From: emily Date: Sun, 4 Aug 2024 16:12:03 +0200 Subject: [PATCH 4/5] vapoursynth-nnedi3: init at v12 --- .../by-name/va/vapoursynth-nnedi3/package.nix | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 pkgs/by-name/va/vapoursynth-nnedi3/package.nix diff --git a/pkgs/by-name/va/vapoursynth-nnedi3/package.nix b/pkgs/by-name/va/vapoursynth-nnedi3/package.nix new file mode 100644 index 000000000000..1fe4b8597d72 --- /dev/null +++ b/pkgs/by-name/va/vapoursynth-nnedi3/package.nix @@ -0,0 +1,45 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + vapoursynth, + yasm, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "vapoursynth-nnedi3"; + version = "12"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = "vapoursynth-nnedi3"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-jd/PCXhbCZGMsoXjekbeqMSRVBJAy4INdpkTbZFjVO0="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + vapoursynth + yasm + ]; + + configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ]; + + postInstall = '' + rm -f $out/lib/vapoursynth/*.la + ''; + + meta = { + description = "Filter for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-nnedi3"; + license = with lib.licenses; [ gpl2Plus ]; + maintainers = with lib.maintainers; [ snaki ]; + platforms = with lib.platforms; x86_64 ++ aarch64; + }; +}) From c15cc06900fd451b46fd2e6ae548ca0722ae466f Mon Sep 17 00:00:00 2001 From: emily Date: Sun, 4 Aug 2024 18:10:22 +0200 Subject: [PATCH 5/5] vapoursynth-znedi3: init at unstable-2023-07-09 --- .../by-name/va/vapoursynth-znedi3/package.nix | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/va/vapoursynth-znedi3/package.nix diff --git a/pkgs/by-name/va/vapoursynth-znedi3/package.nix b/pkgs/by-name/va/vapoursynth-znedi3/package.nix new file mode 100644 index 000000000000..cd5b7f90fa29 --- /dev/null +++ b/pkgs/by-name/va/vapoursynth-znedi3/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitHub, + vapoursynth, +}: + +stdenv.mkDerivation { + pname = "vapoursynth-znedi3"; + version = "unstable-2023-07-09"; + + src = fetchFromGitHub { + fetchSubmodules = true; + owner = "sekrit-twc"; + repo = "znedi3"; + rev = "68dc130bc37615fd912d1dc1068261f00f54b146"; + hash = "sha256-QC+hMMfp6XwW4PqsN6sip1Y7ttiYn/xuxq/pUg/trog="; + }; + + buildInputs = [ vapoursynth ]; + + postPatch = '' + rm -rf vsxx/vapoursynth + ln -s ${vapoursynth}/include/vapoursynth vsxx/vapoursynth + ''; + + makeFlags = + [ "CPPFLAGS=-DNNEDI3_WEIGHTS_PATH='\"$(out)/share/nnedi3/nnedi3_weights.bin\"'" ] + ++ lib.optionals stdenv.hostPlatform.isx86 [ + "X86=1" + "X86_AVX512=1" + ]; + + installPhase = '' + runHook preInstall + + install -D -t $out/lib/vapoursynth vsznedi3${stdenv.hostPlatform.extensions.sharedLibrary} + install -D -m644 -t $out/share/nnedi3 nnedi3_weights.bin + + runHook postInstall + ''; + + meta = { + inherit (vapoursynth.meta) platforms; + description = "Filter for VapourSynth"; + homepage = "https://github.com/sekrit-twc/znedi3"; + license = with lib.licenses; [ + gpl2Plus + wtfpl + lgpl21 + ]; + maintainers = with lib.maintainers; [ snaki ]; + }; +}