nixpkgs/pkgs/tools/misc/starship/default.nix
Maximilian Bosch bead83efa5
starship: 0.33.1 -> 0.35.1
Closes #79282
Co-authored-by: Oleksii Filonenko <brightone@protonmail.com>
2020-02-06 17:18:26 +01:00

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;
};
}