depot/third_party/nixpkgs/pkgs/applications/version-management/git-dive/default.nix
Default email 410b979fe2 Project import generated by Copybara.
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
2023-03-24 01:07:29 +01:00

47 lines
1,013 B
Nix

{ 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.4";
src = fetchFromGitHub {
owner = "gitext-rs";
repo = "git-dive";
rev = "v${version}";
hash = "sha256-nl6JEVOU5eDntPOItYCooBi3zx2ceyRLtelr97uYiOY=";
};
cargoHash = "sha256-johUvl2hPlgn+2wgFJUR6/pR7lx1NzE4ralcjhVqkik=";
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 ];
};
}