From 330b00b103978fdb03adcb4554ae676b2f8ebdb6 Mon Sep 17 00:00:00 2001 From: 0xb10c Date: Thu, 7 Dec 2023 16:20:18 +0100 Subject: [PATCH] bitcoin: fix darwin builds Bitcoin Core requires a MACOSX_DEPLOYMENT_TARGET of 10.13. The current default MACOSX_DEPLOYMENT_TARGET is 10.12. --- pkgs/applications/blockchains/bitcoin/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/blockchains/bitcoin/default.nix b/pkgs/applications/blockchains/bitcoin/default.nix index 1d0736244b68..83c1f35c5fbd 100644 --- a/pkgs/applications/blockchains/bitcoin/default.nix +++ b/pkgs/applications/blockchains/bitcoin/default.nix @@ -72,6 +72,10 @@ stdenv.mkDerivation rec { install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png ''; + preConfigure = lib.optionalString stdenv.isDarwin '' + export MACOSX_DEPLOYMENT_TARGET=10.13 + ''; + configureFlags = [ "--with-boost-libdir=${boost.out}/lib" "--disable-bench"