Merge pull request #148226 from arcnmx/starship-notify

starship: build with notification support
This commit is contained in:
Jörg Thalheim 2021-12-02 15:36:16 +00:00 committed by GitHub
commit f7ecf35978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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