mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
ton: fix build on Darwin
This commit is contained in:
parent
ee4033bb40
commit
b27ac6e75f
@ -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…
Reference in New Issue
Block a user