zxing: fix paths in pkg-config file
This commit is contained in:
parent
ab783bb492
commit
61bffac9fa
1 changed files with 11 additions and 0 deletions
|
@ -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)";
|
||||
|
|
Loading…
Reference in a new issue