cargo-generate: bump version 0.5.3 -> 0.11.0

This commit is contained in:
Maxim Zhukov 2021-11-30 16:30:09 +03:00
parent 7fff1e9c0c
commit 6a9274c55f

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-generate";
version = "0.5.3";
version = "0.11.0";
src = fetchFromGitHub {
owner = "ashleygwilliams";
repo = "cargo-generate";
rev = "v${version}";
sha256 = "sha256-RrDwq5VufMDsPlqRmBP3x2RUWU740L0L18noByO1IDY=";
sha256 = "sha256-082rFxC/p68X8g58I7Q7Of70ymq7VsLhkQpcqVx0u/A=";
};
cargoSha256 = "sha256-/0pxEQFhovPRI4Knv5xq6+PHRuGN6+tF8CdK5X30LKI=";
cargoSha256 = "sha256-1yTH5FvalzBD13FXh/X1jmZhVyWU3thrjNSsrHUfBNE=";
nativeBuildInputs = [ pkg-config ];
@ -24,6 +24,12 @@ rustPlatform.buildRustPackage rec {
git config --global user.email nixbld@localhost.localnet
'';
# Exclude some tests that don't work in sandbox:
# - favorites_default_to_git_if_not_defined: requires network access to github.com
# - should_canonicalize: the test assumes that it will be called from the /Users/<project_dir>/ folder on darwin variant.
checkFlags = [ "--skip favorites::favorites_default_to_git_if_not_defined" ]
++ lib.optionals stdenv.isDarwin [ "--skip git::should_canonicalize" ];
meta = with lib; {
description = "cargo, make me a project";
homepage = "https://github.com/ashleygwilliams/cargo-generate";