2019-10-08 10:00:00 -07:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
2019-08-16 10:12:52 -07:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "starship";
|
2019-10-25 09:00:47 -07:00
|
|
|
version = "0.25.2";
|
2019-08-16 10:12:52 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starship";
|
|
|
|
repo = "starship";
|
|
|
|
rev = "v${version}";
|
2019-10-25 09:00:47 -07:00
|
|
|
sha256 = "12qpfim0sqrghy41wdlqyq04yqh9mdkfgkhr01ajg0scqwbxi8ws";
|
2019-08-16 10:12:52 -07:00
|
|
|
};
|
|
|
|
|
2019-09-20 13:20:46 -07:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2019-08-16 10:12:52 -07:00
|
|
|
|
2019-10-25 09:00:47 -07:00
|
|
|
cargoSha256 = "0vcyzvcdpbn27faaj0wkm0mzhmck8s4z3wlhsck1kx4hnjripn02";
|
2019-08-19 09:17:24 -07:00
|
|
|
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
2019-08-16 10:12:52 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A minimal, blazing fast, and extremely customizable prompt for any shell";
|
|
|
|
homepage = "https://starship.rs";
|
|
|
|
license = licenses.isc;
|
2019-10-05 05:05:41 -07:00
|
|
|
maintainers = with maintainers; [ bbigras davidtwco ];
|
2019-08-16 10:12:52 -07:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|