They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libgit2,
|
|
oniguruma,
|
|
zlib,
|
|
gitMinimal,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "git-dive";
|
|
version = "0.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gitext-rs";
|
|
repo = "git-dive";
|
|
rev = "v${version}";
|
|
hash = "sha256-sy2qNFn8JLE173HVWfFXBx21jcx4kpFMwi9a0m38lso=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-qRF111ofiM8SNUjQfpDg75OPpJnP7fOqM8Ih3NQUdGY=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libgit2
|
|
oniguruma
|
|
zlib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
];
|
|
|
|
# don't use vendored libgit2
|
|
buildNoDefaultFeatures = true;
|
|
|
|
checkFlags = [
|
|
# requires internet access
|
|
"--skip=screenshot"
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
git config --global user.name nixbld
|
|
git config --global user.email nixbld@example.com
|
|
'';
|
|
|
|
env = {
|
|
LIBGIT2_NO_VENDOR = 1;
|
|
RUSTONIG_SYSTEM_LIBONIG = 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 ];
|
|
mainProgram = "git-dive";
|
|
};
|
|
}
|