nushell: fix build on x86_64-darwin

This commit is contained in:
Weijia Wang 2023-02-11 09:04:08 +01:00
parent 59ec2e613f
commit 51f387beff
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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;
};