vapoursynthPlugins.ocr: init at unstable-2021-09-26

This commit is contained in:
Simon Bruder 2021-10-15 18:44:17 +02:00
parent 636c45cbd3
commit bb12aa668a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 30 additions and 0 deletions

View file

@ -40,6 +40,7 @@ in
mvtools = prev.vapoursynth-mvtools;
nnedi3 = prev.callPackage ./plugins/nnedi3 { };
nnedi3cl = prev.callPackage ./plugins/nnedi3cl { };
ocr = prev.callPackage ./plugins/ocr { };
placebo = prev.callPackage ./plugins/placebo { };
readmpls = prev.callPackage ./plugins/readmpls { };
remap = prev.callPackage ./plugins/remap { };

29
plugins/ocr/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, tesseract, vapoursynth }:
stdenv.mkDerivation rec {
pname = "vs-ocr";
version = "unstable-2021-09-26";
src = fetchFromGitHub {
owner = "vapoursynth";
repo = pname;
rev = "b5dd7749a2f0694840d287f0bf4d42ce5323a8cf";
sha256 = "sha256-N2+S4YRMzjpFdRnCXGgvxU1rUKIjmHe7ylzBrB4CPL8=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ tesseract vapoursynth ];
postPatch = ''
substituteInPlace meson.build \
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
'';
meta = with lib; {
description = "OCR plugin for VapourSynth";
homepage = "https://github.com/vapoursynth/vs-ocr";
license = licenses.mit;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}