cargo-generate: unpin libgit2

This commit is contained in:
Sandro Jäckel 2024-02-11 22:46:48 +01:00 committed by sternenseemann
parent 655cec4b6c
commit c46ca8c6bc

View File

@ -2,7 +2,7 @@
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2_1_6
, libgit2
, openssl
, stdenv
, darwin
@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgit2_1_6 openssl ] ++ lib.optionals stdenv.isDarwin [
buildInputs = [ libgit2 openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
@ -48,6 +48,10 @@ rustPlatform.buildRustPackage rec {
"--skip=git::utils::should_canonicalize"
];
env = {
LIBGIT2_NO_VENDOR = 1;
};
meta = with lib; {
description = "A tool to generate a new Rust project by leveraging a pre-existing git repository as a template";
homepage = "https://github.com/cargo-generate/cargo-generate";