3
0
Fork 0
forked from mirrors/nixpkgs

starship: fix aarch64-darwin build

This commit is contained in:
natsukium 2024-01-08 02:19:50 +09:00
parent bb7d124cb5
commit 5175237922
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53

View file

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