diff --git a/default.nix b/default.nix index db7fdf0..5801412 100644 --- a/default.nix +++ b/default.nix @@ -37,6 +37,7 @@ in knlmeanscl = prev.callPackage ./plugins/knlmeanscl { }; lsmashsource = prev.callPackage ./plugins/lsmashsource { }; median = prev.callPackage ./plugins/median { }; + miscfilters-obsolete = prev.callPackage ./plugins/miscfilters-obsolete { }; msmoosh = prev.callPackage ./plugins/msmoosh { }; mvtools = prev.vapoursynth-mvtools; nnedi3 = prev.callPackage ./plugins/nnedi3 { }; diff --git a/plugins/miscfilters-obsolete/default.nix b/plugins/miscfilters-obsolete/default.nix new file mode 100644 index 0000000..e0a9951 --- /dev/null +++ b/plugins/miscfilters-obsolete/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, tesseract, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vs-miscfilters-obsolete"; + version = "unstable-2022-01-24"; + + src = fetchFromGitHub { + owner = "vapoursynth"; + repo = pname; + rev = "07e0589a381f7deb3bf533bb459a94482bccc5c7"; + sha256 = "sha256-WEhpBTNEamNfrNXZxtpTGsOclPMRu+yBzNJmDnU0wzQ="; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ vapoursynth ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace "dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + meta = with lib; { + description = "A collection of VapourSynth filters that mostly are useful for Avisynth compatibility"; + homepage = "https://github.com/vapoursynth/vs-miscfilters-obsolete"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}