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

27 lines
885 B
Nix
Raw Normal View History

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