lomiri.teleports.passthru.tdlib: Fix CMake 4 compatibility

And make it separately buildable.
This commit is contained in:
OPNA2608
2025-10-11 00:19:30 +02:00
parent 4aff74ea96
commit efe67b9106

View File

@@ -37,6 +37,15 @@ let
rev = "3179d35694a28267a0b6273fc9b5bdce3b6b1235";
hash = "sha256-XvqqDXaFclWK/XpIxOqAXQ9gcc/dTljl841CN0KrlyA=";
};
# CMake 4 compat
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10 FATAL_ERROR)'
substituteInPlace td/generate/tl-parser/CMakeLists.txt \
--replace-fail 'cmake_minimum_required(VERSION 3.0 FATAL_ERROR)' 'cmake_minimum_required(VERSION 3.10 FATAL_ERROR)'
'';
}
);
in
@@ -101,7 +110,7 @@ stdenv.mkDerivation (finalAttrs: {
quazip
quickflux
rlottie
tdlib-1811
finalAttrs.passthru.tdlib
];
postInstall = ''
@@ -115,6 +124,8 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru = {
tdlib = tdlib-1811;
updateScript = gitUpdater { rev-prefix = "v"; };
tests.vm = nixosTests.teleports;
};