2019-10-08 18:00:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
2019-08-16 18:12:52 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "starship";
|
2019-11-27 22:54:43 +00:00
|
|
|
version = "0.26.5";
|
2019-08-16 18:12:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starship";
|
|
|
|
repo = "starship";
|
|
|
|
rev = "v${version}";
|
2019-11-27 22:54:43 +00:00
|
|
|
sha256 = "0a2jx82cwnxr0751qz2zp3chl0ndxf4wmjnar1y7s63syy9i6s52";
|
2019-08-16 18:12:52 +01:00
|
|
|
};
|
|
|
|
|
2019-09-20 21:20:46 +01:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
|
2019-08-16 18:12:52 +01:00
|
|
|
|
2019-11-27 22:54:43 +00:00
|
|
|
cargoSha256 = "110ajwgdshakcqxfnqi30yy0miikp2qx86flwfkd78jawfll2krp";
|
2019-08-19 17:17:24 +01:00
|
|
|
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
2019-08-16 18:12:52 +01: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 13:05:41 +01:00
|
|
|
maintainers = with maintainers; [ bbigras davidtwco ];
|
2019-08-16 18:12:52 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|