3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/starship/default.nix

33 lines
956 B
Nix
Raw Normal View History

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";
2020-01-16 10:09:44 +00:00
version = "0.33.1";
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}";
2020-01-16 10:09:44 +00:00
sha256 = "15z8iwig10brjxirr9nm1aibjz6qpd82v7n9c4i2q1q9qvb3j5cs";
2019-08-16 18:12:52 +01:00
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
2019-08-16 18:12:52 +01:00
postPatch = ''
substituteInPlace src/utils.rs \
--replace "/bin/echo" "echo"
'';
2020-01-16 10:09:44 +00:00
cargoSha256 = "16jr96ljd34x3fa2jahcqmjm1ds8519hx391wv1snk7y70fz1314";
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;
};
}