diff --git a/pkgs/by-name/to/ton/package.nix b/pkgs/by-name/to/ton/package.nix index f929c0b618b0..bccdd713aaff 100644 --- a/pkgs/by-name/to/ton/package.nix +++ b/pkgs/by-name/to/ton/package.nix @@ -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";