mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-18 07:02:25 +01:00
30 lines
852 B
Nix
30 lines
852 B
Nix
{ 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;
|
|
};
|
|
}
|