2019-12-20 10:09:28 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform
|
|
|
|
, libiconv, Security }:
|
2019-08-16 18:12:52 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "starship";
|
2019-12-29 14:21:45 +00:00
|
|
|
version = "0.32.2";
|
2019-08-16 18:12:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starship";
|
2019-12-03 17:10:30 +00:00
|
|
|
repo = pname;
|
2019-08-16 18:12:52 +01:00
|
|
|
rev = "v${version}";
|
2019-12-29 14:21:45 +00:00
|
|
|
sha256 = "1yn2xr7142xnrsglrabxzgv16hp16i5d2dybazpzxflfnn52c0am";
|
2019-08-16 18:12:52 +01:00
|
|
|
};
|
|
|
|
|
2019-12-22 16:07:58 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2019-08-16 18:12:52 +01:00
|
|
|
|
2019-12-03 17:37:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/utils.rs \
|
|
|
|
--replace "/bin/echo" "echo"
|
|
|
|
'';
|
|
|
|
|
2019-12-29 14:21:45 +00:00
|
|
|
cargoSha256 = "0i3jrk7qyyzhk4855z0vsdf64n14xqqg9by0dr62jz83hdx89x1w";
|
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-12-03 17:10:55 +00:00
|
|
|
maintainers = with maintainers; [ bbigras davidtwco filalex77 ];
|
2019-08-16 18:12:52 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|