From 338ecf0f19bb1c0c4fa516aa8a29717da654b177 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 16 May 2021 11:51:58 +0200 Subject: [PATCH] vapoursynthPlugins.readmpls: init at r4 --- default.nix | 1 + plugins/readmpls/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/readmpls/default.nix diff --git a/default.nix b/default.nix index f738023..74b7ded 100644 --- a/default.nix +++ b/default.nix @@ -38,6 +38,7 @@ in nnedi3 = super.callPackage ./plugins/nnedi3 { }; nnedi3cl = super.callPackage ./plugins/nnedi3cl { }; placebo = super.callPackage ./plugins/placebo { }; + readmpls = super.callPackage ./plugins/readmpls { }; remap = super.callPackage ./plugins/remap { }; retinex = super.callPackage ./plugins/retinex { }; sangnom = super.callPackage ./plugins/sangnom { }; diff --git a/plugins/readmpls/default.nix b/plugins/readmpls/default.nix new file mode 100644 index 0000000..8a309fd --- /dev/null +++ b/plugins/readmpls/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, libbluray, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "VapourSynth-ReadMpls"; + version = "r4"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = pname; + rev = version; + sha256 = "0v1hs0wgpv9raacsslmwhsw81c49c52mhc6py2ydxb0b359rqg2n"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ libbluray vapoursynth ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + meta = with lib; { + description = "ReadMpls filter for VapourSynth"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-ReadMpls"; + license = licenses.lgpl3Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}