mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #279419 from natsukium/starship/fix
starship: fix aarch64-darwin build
This commit is contained in:
commit
a82f082886
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user