rabbitmq-c: fix paths in pkg-config file

This commit is contained in:
Alexander Shpilkin 2022-05-18 21:15:03 +03:00 committed by Artturin
parent ce8e657451
commit 00b52816d8

View file

@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl popt xmlto ];
# https://github.com/alanxz/rabbitmq-c/issues/733
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
'';
meta = with lib; {
description = "RabbitMQ C AMQP client library";
homepage = "https://github.com/alanxz/rabbitmq-c";