14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-90mh8C52uD68K5o1LE22gkbL1gy6FyMJTiiN9oV/3DE=";
25 nativeBuildInputs = [ installShellFiles cmake ];
27 buildInputs = lib.optionals stdenv.isDarwin [ Security Foundation Cocoa ];
29 NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ];
32 installShellCompletion --cmd starship \
33 --bash <($out/bin/starship completions bash) \
34 --fish <($out/bin/starship completions fish) \
35 --zsh <($out/bin/starship completions zsh)
38 cargoHash = "sha256-Q1VY9RyHEsQAWRN/upeG5XJxJfrmzj5FQG6GBGrN0xU=";
45 inherit (nixosTests) starship;
49 description = "A minimal, blazing fast, and extremely customizable prompt for any shell";
50 homepage = "https://starship.rs";
51 license = licenses.isc;
52 maintainers = with maintainers; [ bbigras danth davidtwco Br1ght0ne Frostman marsam ];