From f7746d1482f499257dafc87be27154832edf3781 Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 12 Aug 2025 00:53:16 +0500 Subject: feat: remove tdlib --- pkgs/tdlib/default.nix | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 pkgs/tdlib/default.nix (limited to 'pkgs/tdlib') diff --git a/pkgs/tdlib/default.nix b/pkgs/tdlib/default.nix deleted file mode 100644 index d81747e..0000000 --- a/pkgs/tdlib/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ fetchFromGitHub, gperf, openssl, readline, zlib, cmake, lib, stdenv }: - -stdenv.mkDerivation rec { - pname = "tdlib"; - version = "1.8.23"; - - src = fetchFromGitHub { - owner = "tdlib"; - repo = "td"; - - # The tdlib authors do not set tags for minor versions, but - # external programs depending on tdlib constrain the minor - # version, hence we set a specific commit with a known version. - rev = "404761c525d933df813702c863828058cd26111a"; - hash = "sha256-wyuGsLZFDRgziBPD9kvn2BJpPcVQCY2kU4j7Qy+9H6o=="; - }; - - 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} - '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' - sed -i "/vptr/d" test/CMakeLists.txt - ''; - - meta = with lib; { - description = "Cross-platform library for building Telegram clients"; - homepage = "https://core.telegram.org/tdlib/"; - license = [ licenses.boost ]; - platforms = platforms.unix; - maintainers = [ maintainers.vyorkin ]; - }; -} -- cgit v1.2.3