ton: fix build on Darwin (#361514)
This commit is contained in:
commit
7cc48215b1
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user