forked from mirrors/nixpkgs
27 lines
881 B
Nix
27 lines
881 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, libiconv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "starship";
|
|
version = "0.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "starship";
|
|
repo = "starship";
|
|
rev = "v${version}";
|
|
sha256 = "1xin821lgrdxb50i9p9ya3yfi64l4byf9il4jiijgsjckinxyflj";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
|
|
|
cargoSha256 = "12yswvhgcmqz0nyarva27pjc4xqqqn3m31y04r3l7ldbzgikn8k6";
|
|
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A minimal, blazing fast, and extremely customizable prompt for any shell";
|
|
homepage = "https://starship.rs";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ bbigras ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|