mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
bead83efa5
Closes #79282 Co-authored-by: Oleksii Filonenko <brightone@protonmail.com>
33 lines
956 B
Nix
33 lines
956 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform
|
|
, libiconv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "starship";
|
|
version = "0.35.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "starship";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "17338l3nj6rysl9qvlbi1amqk6n5p15x8fvd11md7hwiavy4c63c";
|
|
};
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/utils.rs \
|
|
--replace "/bin/echo" "echo"
|
|
'';
|
|
|
|
cargoSha256 = "0q6g7i930n23aabkwfn30lpbm5brjls552ql5khc6w02sirshsng";
|
|
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;
|
|
};
|
|
}
|