3
0
Fork 0
forked from mirrors/nixpkgs

tdlib: fix paths in pkg-config files

This commit is contained in:
Alexander Shpilkin 2022-05-18 23:42:56 +03:00 committed by Artturin
parent ab2ace0b8c
commit 960e3c40c6

View file

@ -15,6 +15,16 @@ stdenv.mkDerivation rec {
buildInputs = [ gperf openssl readline zlib ];
nativeBuildInputs = [ cmake ];
# https://github.com/tdlib/td/issues/1974
postPatch = ''
substituteInPlace CMake/GeneratePkgConfig.cmake \
--replace 'function(generate_pkgconfig' \
'include(GNUInstallDirs)
function(generate_pkgconfig' \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
--replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
'';
meta = with lib; {
description = "Cross-platform library for building Telegram clients";
homepage = "https://core.telegram.org/tdlib/";