From c236668afbbf15caa83cb17a47b3d896ac32667c Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 15 Oct 2021 18:35:48 +0200 Subject: [PATCH] vapoursynthPlugins.imwri: init at R1 --- default.nix | 1 + plugins/imwri/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/imwri/default.nix diff --git a/default.nix b/default.nix index 861cfd9..c7a4fbf 100644 --- a/default.nix +++ b/default.nix @@ -32,6 +32,7 @@ in fmtconv = prev.callPackage ./plugins/fmtconv { }; histogram = prev.callPackage ./plugins/histogram { }; hqdn3d = prev.callPackage ./plugins/hqdn3d { }; + imwri = prev.callPackage ./plugins/imwri { }; knlmeanscl = prev.callPackage ./plugins/knlmeanscl { }; lsmashsource = prev.callPackage ./plugins/lsmashsource { }; median = prev.callPackage ./plugins/median { }; diff --git a/plugins/imwri/default.nix b/plugins/imwri/default.nix new file mode 100644 index 0000000..1e6b37e --- /dev/null +++ b/plugins/imwri/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, imagemagick, libheif, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vs-imwri"; + version = "R1"; + + src = fetchFromGitHub { + owner = "vapoursynth"; + repo = pname; + rev = version; + sha256 = "sha256-3nNX7OxAwHPJ6JwaTZJTH13eWktPI/XBmEC/OETCun4="; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ imagemagick libheif vapoursynth ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace "vapoursynth_dep.get_variable(pkgconfig: 'libdir')" "get_option('libdir')" + ''; + + meta = with lib; { + description = "Image reader and writer for VapourSynth using the ImageMagick library"; + homepage = "https://github.com/vapoursynth/vs-imwri"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}