diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix index dc1affff975b..efbc1d3e1b14 100644 --- a/pkgs/tools/misc/starship/default.nix +++ b/pkgs/tools/misc/starship/default.nix @@ -5,11 +5,9 @@ rustPlatform, installShellFiles, cmake, + writableTmpDirAsHomeHook, git, nixosTests, - Security, - Foundation, - Cocoa, buildPackages, }: @@ -29,16 +27,7 @@ rustPlatform.buildRustPackage (finalAttrs: { cmake ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - Security - Foundation - Cocoa - ]; - - NIX_LDFLAGS = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-framework" - "AppKit" - ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ writableTmpDirAsHomeHook ]; # tries to access HOME only in aarch64-darwin environment when building mac-notification-sys preBuild = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index edb35316c35e..e3ddeaad01e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13609,9 +13609,7 @@ with pkgs; version = "4.300"; }; - starship = callPackage ../tools/misc/starship { - inherit (darwin.apple_sdk.frameworks) Security Foundation Cocoa; - }; + starship = callPackage ../tools/misc/starship { }; inherit (callPackages ../data/fonts/gdouros { }) aegan