nixpkgs/pkgs/tools/misc/starship/default.nix

27 lines
881 B
Nix
Raw Normal View History

2019-09-20 20:20:46 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, libiconv, darwin }:
2019-08-16 17:12:52 +00:00
rustPlatform.buildRustPackage rec {
pname = "starship";
version = "0.19.0";
2019-08-16 17:12:52 +00:00
src = fetchFromGitHub {
owner = "starship";
repo = "starship";
rev = "v${version}";
sha256 = "0cj3r8c583xzraggwl1xb36790czha4dja6c3yvn5f19whmmf2g9";
2019-08-16 17:12:52 +00:00
};
2019-09-20 20:20:46 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
2019-08-16 17:12:52 +00:00
cargoSha256 = "1ldhkys44nkwjm6cmz1x2k5j4n79rqkh6km86hssjps5bzw6niw4";
2019-08-19 16:17:24 +00:00
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
2019-08-16 17:12:52 +00:00
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;
};
}