zxing: fix paths in pkg-config file

This commit is contained in:
Alexander Shpilkin 2022-05-09 07:36:22 +03:00 committed by Artturin
parent ab783bb492
commit 61bffac9fa

View file

@ -26,6 +26,17 @@ stdenv.mkDerivation rec {
"-DBUILD_BLACKBOX_TESTS=OFF"
];
# https://github.com/nu-book/zxing-cpp/issues/335
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'configure_file(zxing.pc.in' \
'include(GNUInstallDirs)
configure_file(zxing.pc.in'
substituteInPlace zxing.pc.in \
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
meta = with lib; {
homepage = "https://github.com/nu-book/zxing-cpp";
description = "C++ port of zxing (a Java barcode image processing library)";