getdns: fix paths in pkg-config file

This commit is contained in:
Alexander Shpilkin 2022-05-16 20:48:01 +03:00 committed by Artturin
parent 499b90f319
commit 0035e659fb

View file

@ -29,6 +29,13 @@ in rec {
buildInputs = [ libidn2 openssl unbound ];
# https://github.com/getdnsapi/getdns/issues/517
postPatch = ''
substituteInPlace getdns.pc.in \
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
postInstall = "rm -r $out/share/doc";
meta = with lib;