git-dive: unpin libgit2

This commit is contained in:
Sandro Jäckel 2024-02-11 23:31:38 +01:00 committed by sternenseemann
parent 4f4287521b
commit bb82aa1c0c

View file

@ -2,8 +2,7 @@
, rustPlatform
, fetchFromGitHub
, pkg-config
# libgit2-sys doesn't support libgit2 1.6 yet
, libgit2_1_5
, libgit2
, oniguruma
, zlib
, stdenv
@ -29,7 +28,7 @@ rustPlatform.buildRustPackage rec {
];
buildInputs = [
libgit2_1_5
libgit2
oniguruma
zlib
] ++ lib.optionals stdenv.isDarwin [
@ -54,7 +53,10 @@ rustPlatform.buildRustPackage rec {
git config --global user.email nixbld@example.com
'';
RUSTONIG_SYSTEM_LIBONIG = true;
env = {
LIBGIT2_NO_VENDOR = 1;
RUSTONIG_SYSTEM_LIBONIG = true;
};
meta = with lib; {
description = "Dive into a file's history to find root cause";