From 51f387beffc5cb9a37d2b5cb3d25ea9594e5525e Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 11 Feb 2023 09:04:08 +0100 Subject: [PATCH] nushell: fix build on x86_64-darwin --- pkgs/shells/nushell/default.nix | 2 -- pkgs/top-level/all-packages.nix | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix index 2f89521f934b..2264f0abd892 100644 --- a/pkgs/shells/nushell/default.nix +++ b/pkgs/shells/nushell/default.nix @@ -12,7 +12,6 @@ , xorg , libiconv , AppKit -, Foundation , Security # darwin.apple_sdk.sdk , sdk @@ -47,7 +46,6 @@ rustPlatform.buildRustPackage rec { buildInputs = [ openssl zstd ] ++ lib.optionals stdenv.isDarwin [ zlib libiconv Security ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - Foundation ( # Pull a header that contains a definition of proc_pid_rusage(). # (We pick just that one because using the other headers from `sdk` is not diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5ca442444ac9..0a436b47e5bc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26203,8 +26203,8 @@ with pkgs; nsh = callPackage ../shells/nsh { }; - nushell = callPackage ../shells/nushell { - inherit (darwin.apple_sdk.frameworks) AppKit Foundation Security; + nushell = darwin.apple_sdk_11_0.callPackage ../shells/nushell { + inherit (darwin.apple_sdk_11_0.frameworks) AppKit Security; inherit (darwin.apple_sdk) sdk; };