nixpkgs-suyu/pkgs/tools/misc/starship/default.nix
Oleksii Filonenko 3715a75d16
starship: remove openssl from buildInputs
No longer necessary, as v0.32.1 started using rustls.
d1b725a47c
2019-12-22 18:07:58 +02:00

32 lines
956 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform
, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "starship";
version = "0.32.1";
src = fetchFromGitHub {
owner = "starship";
repo = pname;
rev = "v${version}";
sha256 = "047nvi231hzwjfci13x8lhszmaccb94mn5lvnyq24zb0im8br6d3";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
postPatch = ''
substituteInPlace src/utils.rs \
--replace "/bin/echo" "echo"
'';
cargoSha256 = "0r1kbv6f5v95wnshxj1wkqvp1adyrivzlr606c6blhl9z9j7m3d7";
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;
};
}