mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
git-metrics: init at 0.2.6
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
bd10a42cad
commit
8a7602273e
1 changed files with 53 additions and 0 deletions
53
pkgs/by-name/gi/git-metrics/package.nix
Normal file
53
pkgs/by-name/gi/git-metrics/package.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
gitMinimal,
|
||||
rustPlatform,
|
||||
openssl,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "git-metrics";
|
||||
version = "0.2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jdrouet";
|
||||
repo = "git-metrics";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-SdA/FpdrbC36Ny7aBpTUvFldbYXyajSqWGheaDPHYoE=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-e4CdpwoFl8leV5HJWkWBpvPrVrk+7vq49yTPkpeQ2Ng=";
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pkg-config
|
||||
gitMinimal
|
||||
];
|
||||
|
||||
checkFlags = [
|
||||
# requires git author information to be detectable
|
||||
"--skip=tests::check_budget::execute::with_command_backend"
|
||||
"--skip=tests::check_budget::execute::with_git2_backend"
|
||||
"--skip=tests::conflict_different::execute::with_command_backend"
|
||||
"--skip=tests::conflict_different::execute::with_git2_backend"
|
||||
"--skip=tests::display_diff::execute"
|
||||
"--skip=tests::simple_use_case::execute::with_command_backend"
|
||||
"--skip=tests::simple_use_case::execute::with_git2_backend"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/jdrouet/git-metrics";
|
||||
description = "Git extension to be able to track metrics about your project, within the git repository";
|
||||
license = [ lib.licenses.mit ];
|
||||
maintainers = with lib.maintainers; [
|
||||
matthiasbeyer
|
||||
];
|
||||
mainProgram = "git-metrics";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue