Merge pull request #76177 from filalex77/starship-0.32.1
starship: 0.31.0 -> 0.32.1
This commit is contained in:
commit
edcd34ab83
@ -1,27 +1,25 @@
|
|||||||
{ stdenv, fetchFromGitHub, rustPlatform
|
{ stdenv, fetchFromGitHub, rustPlatform
|
||||||
, pkg-config, openssl
|
|
||||||
, libiconv, Security }:
|
, libiconv, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "starship";
|
pname = "starship";
|
||||||
version = "0.31.0";
|
version = "0.32.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "starship";
|
owner = "starship";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1g4cpnlz2gx4c3cmqx3a69iwjs2cg8p86l0zd198h6fv8pa1i16y";
|
sha256 = "047nvi231hzwjfci13x8lhszmaccb94mn5lvnyq24zb0im8br6d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
buildInputs = [ openssl ] ++ (stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]);
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/utils.rs \
|
substituteInPlace src/utils.rs \
|
||||||
--replace "/bin/echo" "echo"
|
--replace "/bin/echo" "echo"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
cargoSha256 = "03qrcf0y6j22asp7x10di6xi8hgai84kvh1imiw9vibxp90868bh";
|
cargoSha256 = "0r1kbv6f5v95wnshxj1wkqvp1adyrivzlr606c6blhl9z9j7m3d7";
|
||||||
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user