diff options
author | natsukium <tomoya.otabi@gmail.com> | 2024-01-08 02:19:50 +0900 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-01-15 00:20:49 +0000 |
commit | edc82cf74a8c6ac4e3fb9870d462160aa23abd72 (patch) | |
tree | c503e2b7160fa5328f8192c91e769068db89af30 /pkgs/tools/misc | |
parent | d71f20967da064275ce084dd823cbd2bd31d5cba (diff) |
starship: fix aarch64-darwin build
(cherry picked from commit 5175237922a8ff983a998800c2e256331e71781a)
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/starship/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/starship/default.nix b/pkgs/tools/misc/starship/default.nix index 788a913c7907c..605867e285c25 100644 --- a/pkgs/tools/misc/starship/default.nix +++ b/pkgs/tools/misc/starship/default.nix @@ -28,6 +28,11 @@ rustPlatform.buildRustPackage rec { NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ]; + # tries to access HOME only in aarch64-darwin environment when building mac-notification-sys + preBuild = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + export HOME=$TMPDIR + ''; + postInstall = '' installShellCompletion --cmd starship \ --bash <($out/bin/starship completions bash) \ |