ocrmypdf: fix patching of leptonica lib path
This commit is contained in:
parent
1cab2551b9
commit
24c14a8fc9
@ -70,8 +70,8 @@ in buildPythonApplication rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/ocrmypdf/leptonica.py \
|
substituteInPlace src/ocrmypdf/leptonica.py \
|
||||||
--replace "lept = ffi.dlopen(_libpath)" \
|
--replace '_libpath = find_library(libname)' \
|
||||||
'lept = ffi.dlopen("${stdenv.lib.makeLibraryPath [leptonica]}/liblept${stdenv.hostPlatform.extensions.sharedLibrary}")'
|
'_libpath = "${stdenv.lib.getLib leptonica}/lib/liblept${stdenv.hostPlatform.extensions.sharedLibrary}"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# The tests take potentially 20+ minutes, depending on machine
|
# The tests take potentially 20+ minutes, depending on machine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user