From 90888626baa2f00a9ab7a47d2f67dd618b8bc112 Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Fri, 22 Jan 2021 14:50:16 +0000 Subject: [PATCH] nix: add Security to build inputs. For some reason, this is required to build nix on Big Sur, even though it's not needed on earlier macOS versions. --- pkgs/tools/package-management/nix/default.nix | 2 ++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index cd0fed650799..495d0aae018a 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -3,6 +3,7 @@ , stateDir ? "/nix/var" , confDir ? "/etc" , boehmgc +, Security }: let @@ -52,6 +53,7 @@ common = [ curl openssl sqlite xz bzip2 nlohmann_json brotli boost editline ] + ++ lib.optionals stdenv.isDarwin [ Security ] ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium ++ lib.optionals is24 [ libarchive gmock ] ++ lib.optional withLibseccomp libseccomp diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d13ca561c2a..75e1d3ca2455 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28565,6 +28565,7 @@ in storeDir = config.nix.storeDir or "/nix/store"; stateDir = config.nix.stateDir or "/nix/var"; boehmgc = boehmgc.override { enableLargeConfig = true; }; + inherit (darwin.apple_sdk.frameworks) Security; }) nix nixStable