opendht: fix paths in pkg-config file

This commit is contained in:
Alexander Shpilkin 2022-05-18 17:30:27 +03:00 committed by Artturin
parent d6ad6c4793
commit 8b387ff166

View File

@ -59,6 +59,13 @@ stdenv.mkDerivation rec {
"-DOPENDHT_PUSH_NOTIFICATIONS=ON"
];
# https://github.com/savoirfairelinux/opendht/issues/612
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
'';
outputs = [ "out" "lib" "dev" "man" ];
meta = with lib; {