Merge pull request #221503 from figsoda/git-dive

git-dive: init at 0.1.3
This commit is contained in:
0x4A6F 2023-03-16 20:15:30 +01:00 committed by GitHub
commit b95de8d758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
# libgit2-sys doesn't support libgit2 1.6 yet
, libgit2_1_5
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "git-dive";
version = "0.1.3";
src = fetchFromGitHub {
owner = "gitext-rs";
repo = "git-dive";
rev = "v${version}";
hash = "sha256-zq594j/X74qzRSjbkd2lup/WqZXpTOecUYRVQGqpXug=";
};
cargoHash = "sha256-f3hiAVno5BuPgqP1y9XtVQ/TJcnqwUnEOqaU/tTljTQ=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libgit2_1_5
zlib
];
checkFlags = [
# requires internet access
"--skip=screenshot"
];
# don't use vendored libgit2
buildNoDefaultFeatures = true;
meta = with lib; {
description = "Dive into a file's history to find root cause";
homepage = "https://github.com/gitext-rs/git-dive";
changelog = "https://github.com/gitext-rs/git-dive/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ figsoda ];
};
}

View file

@ -1856,6 +1856,8 @@ with pkgs;
git-delete-merged-branches = callPackage ../applications/version-management/git-delete-merged-branches { }; git-delete-merged-branches = callPackage ../applications/version-management/git-delete-merged-branches { };
git-dive = callPackage ../applications/version-management/git-dive { };
git-extras = callPackage ../applications/version-management/git-extras { }; git-extras = callPackage ../applications/version-management/git-extras { };
git-fame = callPackage ../applications/version-management/git-fame { }; git-fame = callPackage ../applications/version-management/git-fame { };