From 480f54285885eb06a7c2c5554bbc5a0efd369ef0 Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Sun, 14 May 2023 14:06:29 +0200 Subject: [PATCH] bitcoin: fix copmilation on x86_64-darwin Bump apple sdk to 11 to get rid of errors like ``` /nix/store/k9pa9xjcv603qxmm40jc0x4a5smih5dd-apple-framework-CoreFoundation-11.0.0/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1189:83: error: expected ',' kCFURLBookmarkCreationWithSecurityScope API_AVAILABLE(macos(10.7), macCatalyst(13.0)) API_UNAVAILABLE(ios, watchos, tvos) = ( 1UL << 11 ), // Mac OS X 10.7.3 and later, include information in the bookmark data which allows the same sandboxed process to access the resource after being relaunched ``` https://hydra.nixos.org/build/219157902/nixlog/3 ZHF: #230712 --- pkgs/top-level/all-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 853527f26080..aad8f552b7bc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35483,6 +35483,7 @@ with pkgs; balanceofsatoshis = nodePackages.balanceofsatoshis; bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin { + stdenv = if stdenv.isDarwin then darwin.apple_sdk_11_0.stdenv else stdenv; boost = boost17x; withGui = true; inherit (darwin) autoSignDarwinBinariesHook;