Merge pull request #83179 from marsam/update-starship

starship: 0.37.0 -> 0.38.1
This commit is contained in:
Mario Rodas 2020-03-23 11:08:45 -05:00 committed by GitHub
commit f85d4e96ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,25 +1,28 @@
{ stdenv, fetchFromGitHub, rustPlatform
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "starship";
version = "0.37.0";
version = "0.38.1";
src = fetchFromGitHub {
owner = "starship";
repo = pname;
rev = "v${version}";
sha256 = "17jgb8fp6zarsnl1hm2y24h0xb0w2w6m61k8g3ww3r4fm8yj649v";
sha256 = "0qp3y2wcpj1r07v1r2y42zrzkl13j0vlinjx05gfmrmapcls41gi";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
postPatch = ''
substituteInPlace src/utils.rs \
--replace "/bin/echo" "echo"
'';
cargoSha256 = "01qzwk3q1f6pmyqsq5gnczdjm3157ja2zlrahw5bd5vmy929l5gq";
cargoSha256 = "11492fv2isw2prfcgxq0wrbln1n6xdi9209cifjf25nnw2aq2csn";
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
meta = with stdenv.lib; {