Skip to content

Commit

Permalink
ton: fix build on Darwin (#361514)
Browse files Browse the repository at this point in the history
  • Loading branch information
misuzu authored Dec 3, 2024
2 parents 3ebf7de + b27ac6e commit 7cc4821
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/by-name/to/ton/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
, secp256k1
, zlib
, nix-update-script
, darwinMinVersionHook
, apple-sdk_11
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 7cc4821

Please sign in to comment.