mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
Merge pull request #167075 from doronbehar/pkg/ocrfeeder
This commit is contained in:
commit
08660ae7c5
@ -18,11 +18,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocrfeeder";
|
||||
version = "0.8.3";
|
||||
version = "0.8.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "12f5gnq92ffnd5zaj04df7jrnsdz1zn4zcgpbf5p9qnd21i2y529";
|
||||
sha256 = "sha256-sD0qWUndguJzTw0uy0FIqupFf4OX6dTFvcd+Mz+8Su0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -49,18 +49,13 @@ stdenv.mkDerivation rec {
|
||||
]))
|
||||
];
|
||||
|
||||
# https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/22
|
||||
postConfigure = ''
|
||||
substituteInPlace src/ocrfeeder/util/constants.py \
|
||||
--replace /usr/share/xml/iso-codes ${isocodes}/share/xml/iso-codes
|
||||
'';
|
||||
|
||||
enginesPath = lib.makeBinPath ([
|
||||
tesseract4
|
||||
] ++ extraOcrEngines);
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(--prefix PATH : "${enginesPath}")
|
||||
gappsWrapperArgs+=(--set ISO_CODES_DIR "${isocodes}/share/xml/iso-codes")
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
@ -69,5 +64,7 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ doronbehar ];
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
# Compiles, but doesn't launch, see: https://gitlab.gnome.org/GNOME/ocrfeeder/-/issues/83
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user