starship: build with notification support

(cherry picked from commit e57ef4569e)
This commit is contained in:
arcnmx
2021-12-01 16:17:44 -08:00
committed by github-actions[bot]
parent 842f42399c
commit 10a3629901

View File

@@ -25,6 +25,8 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
buildFeatures = lib.optional (!stdenv.isDarwin) "notify-rust";
postInstall = ''
for shell in bash fish zsh; do
STARSHIP_CACHE=$TMPDIR $out/bin/starship completions $shell > starship.$shell