···
13
-
rustPlatform.buildRustPackage rec {
13
+
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-generate";
owner = "cargo-generate";
20
-
rev = "v${version}";
21
-
sha256 = "sha256-iOZCSd6jF1OF7ScjpsMlvMjsFHyg6QJJ6qk0OxrARho=";
20
+
tag = "v${finalAttrs.version}";
21
+
hash = "sha256-h6WsTXPlJYoMZ6QDR99LQr5uV0ij8NC02ZEVhg/U+qc=";
26
-
name = "git2-version.patch";
27
-
url = "https://github.com/cargo-generate/cargo-generate/commit/be2237177ee7ae996e2991189b07a5d211cd0d01.patch";
28
-
hash = "sha256-F/o1EeDBfRhIB8atpOHoc6ZnUFCyD1QkCERv4m/YeWE=";
25
+
substituteInPlace src/hooks/system_mod.rs \
26
+
--replace-fail "/bin/cat" "${lib.getExe' coreutils "cat"}"
32
-
cargoHash = "sha256-5cfROJQWIhQNMbDhaCs2bfv4I3KDWcXBsmbbbDQ331s=";
29
+
cargoHash = "sha256-pZm7bsMIOQF/wSwFH5kFXN5mG/H1cKz5hyM2DeNmUQ8=";
nativeBuildInputs = [ pkg-config ];
···
"--skip=git_over_ssh::it_should_retrieve_the_private_key_from_ssh_agent"
"--skip=git_over_ssh::it_should_support_a_public_repo"
"--skip=git_over_ssh::it_should_use_a_ssh_key_provided_by_identity_argument"
59
+
# stderr doesn't quite match what is expected, slightly malformed test
61
+
"--skip=hooks_and_rhai::it_fails_when_a_system_command_returns_non_zero_exit_code"
++ lib.optionals stdenv.hostPlatform.isDarwin [
"--skip=git::utils::should_canonicalize"
···
description = "Tool to generate a new Rust project by leveraging a pre-existing git repository as a template";
mainProgram = "cargo-generate";
homepage = "https://github.com/cargo-generate/cargo-generate";
75
-
changelog = "https://github.com/cargo-generate/cargo-generate/blob/v${version}/CHANGELOG.md";
75
+
changelog = "https://github.com/cargo-generate/cargo-generate/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [
···