nixpkgs/pkgs/development/libraries/tdlib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, lib, stdenv }:
2019-07-14 12:42:13 +00:00
stdenv.mkDerivation rec {
pname = "tdlib";
2022-04-19 13:20:40 +00:00
version = "1.8.3";
2019-07-14 12:42:13 +00:00
src = fetchFromGitHub {
owner = "tdlib";
repo = "td";
2021-12-12 08:19:04 +00:00
# https://github.com/tdlib/td/issues/1790
2022-04-19 13:20:40 +00:00
rev = "054a823c1a812ee3e038f702c6d8ba3e6974be9c";
sha256 = "sha256-YlvIGR3Axej0nfcGBQ5lwwYVWsLgqFrYgOxoNubYMPM=";
2019-07-14 12:42:13 +00:00
};
buildInputs = [ gperf openssl readline zlib ];
nativeBuildInputs = [ cmake ];
2022-05-18 20:42:56 +00:00
# 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; {
2019-07-14 12:42:13 +00:00
description = "Cross-platform library for building Telegram clients";
homepage = "https://core.telegram.org/tdlib/";
license = [ licenses.boost ];
2020-03-03 17:44:04 +00:00
platforms = platforms.unix;
2019-07-14 12:42:13 +00:00
maintainers = [ maintainers.vyorkin ];
};
}