mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f4d6ed2e8b
Signed-off-by: David Wood <david@davidtw.co>
33 lines
956 B
Nix
33 lines
956 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform
|
|
, libiconv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "starship";
|
|
version = "0.37.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "starship";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "17jgb8fp6zarsnl1hm2y24h0xb0w2w6m61k8g3ww3r4fm8yj649v";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/utils.rs \
|
|
--replace "/bin/echo" "echo"
|
|
'';
|
|
|
|
cargoSha256 = "01qzwk3q1f6pmyqsq5gnczdjm3157ja2zlrahw5bd5vmy929l5gq";
|
|
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
|
|
|
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 davidtwco filalex77 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|