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

27 lines
891 B
Nix
Raw Normal View History

2019-09-20 22:20:46 +02:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, libiconv, darwin }:
2019-08-16 19:12:52 +02:00
rustPlatform.buildRustPackage rec {
pname = "starship";
2019-10-05 14:05:07 +02:00
version = "0.20.2";
2019-08-16 19:12:52 +02:00
src = fetchFromGitHub {
owner = "starship";
repo = "starship";
rev = "v${version}";
2019-10-05 14:05:07 +02:00
sha256 = "0nyka4w7vzx3n93y44vblc9pjqaymd867fmp0yd8kk2v56cyf4vd";
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-10-04 13:02:29 +02:00
cargoSha256 = "0c82k6aw245vsqkcrg6bhqhylfbxdszcr040mrz7cz9ydxcb58b9";
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-10-05 14:05:41 +02:00
maintainers = with maintainers; [ bbigras davidtwco ];
2019-08-16 19:12:52 +02:00
platforms = platforms.all;
};
}