mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-22 08:52:25 +01:00
vapoursynthPlugins.ocr: init at unstable-2021-09-26
This commit is contained in:
parent
8ad7342d9c
commit
954bfa2fc2
|
@ -40,6 +40,7 @@ in
|
||||||
mvtools = prev.vapoursynth-mvtools;
|
mvtools = prev.vapoursynth-mvtools;
|
||||||
nnedi3 = prev.callPackage ./plugins/nnedi3 { };
|
nnedi3 = prev.callPackage ./plugins/nnedi3 { };
|
||||||
nnedi3cl = prev.callPackage ./plugins/nnedi3cl { };
|
nnedi3cl = prev.callPackage ./plugins/nnedi3cl { };
|
||||||
|
ocr = prev.callPackage ./plugins/ocr { };
|
||||||
placebo = prev.callPackage ./plugins/placebo { };
|
placebo = prev.callPackage ./plugins/placebo { };
|
||||||
readmpls = prev.callPackage ./plugins/readmpls { };
|
readmpls = prev.callPackage ./plugins/readmpls { };
|
||||||
remap = prev.callPackage ./plugins/remap { };
|
remap = prev.callPackage ./plugins/remap { };
|
||||||
|
|
29
plugins/ocr/default.nix
Normal file
29
plugins/ocr/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue