starship: 1.2.1 -> 1.3.0

This commit is contained in:
Lyndon Sanche 2022-02-10 21:25:46 -07:00
parent ee02c9d15c
commit 2c06ad073a
No known key found for this signature in database
GPG Key ID: 6F8E82F60C799B18

View File

@ -12,13 +12,13 @@
rustPlatform.buildRustPackage rec {
pname = "starship";
version = "1.2.1";
version = "1.3.0";
src = fetchFromGitHub {
owner = "starship";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5MJA8eHo1enOHlLpAOF1iDvOHCS/Nw0sc84VWu9nApE=";
sha256 = "sha256-mqUE4JzNBhvtDpT2LM23eHX8q93wtPqA+/zr/PxEDiE=";
};
nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ];
@ -26,8 +26,6 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
buildFeatures = lib.optional (!stdenv.isDarwin) "notify-rust";
postInstall = ''
for shell in bash fish zsh; do
STARSHIP_CACHE=$TMPDIR $out/bin/starship completions $shell > starship.$shell
@ -35,7 +33,7 @@ rustPlatform.buildRustPackage rec {
done
'';
cargoSha256 = "sha256-DTQQFxj6stzlVzSdmv4J4Nsf8X/VMlwvfIumnuK0YDo=";
cargoSha256 = "sha256-hQNDiayVT4UgbxcxdXssi/evPvwgyvG/UOFyEHj7jpo=";
preCheck = ''
HOME=$TMPDIR