ton: fix build on Darwin

This commit is contained in:
Sam 2024-12-03 10:14:36 -08:00
parent ee4033bb40
commit b27ac6e75f
No known key found for this signature in database
GPG Key ID: 07C4B9795517E3B4

View File

@ -13,6 +13,8 @@
, secp256k1
, zlib
, nix-update-script
, darwinMinVersionHook
, apple-sdk_11
}:
stdenv.mkDerivation rec {
@ -44,14 +46,15 @@ stdenv.mkDerivation rec {
readline
secp256k1
zlib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
# error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
(darwinMinVersionHook "10.13")
apple-sdk_11
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
# The build fails on darwin as:
# error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer
broken = stdenv.hostPlatform.isDarwin;
description = "Fully decentralized layer-1 blockchain designed by Telegram";
homepage = "https://ton.org/";
changelog = "https://github.com/ton-blockchain/ton/blob/v${version}/Changelog.md";