nixpkgs/pkgs/applications/version-management/git-sizer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
757 B
Nix
Raw Normal View History

2022-04-09 12:25:47 +00:00
{ lib, buildGoModule, fetchFromGitHub, testVersion, git-sizer }:
2018-03-07 14:22:32 +00:00
2022-04-09 12:25:47 +00:00
buildGoModule rec {
2018-03-07 14:22:32 +00:00
pname = "git-sizer";
2022-04-09 12:25:47 +00:00
version = "1.5.0";
2018-03-07 14:22:32 +00:00
src = fetchFromGitHub {
owner = "github";
repo = pname;
rev = "v${version}";
2022-04-09 12:25:47 +00:00
sha256 = "sha256-On7QBTzKfnuuzwMQ8m1odxGqfIKL+EDg5V05Kxuhmqw=";
};
vendorSha256 = "sha256-oRlsD99XiI/0ZWibjyRcycmGab+vMbXrV5hIdIyUDYg=";
ldflags = [ "-s" "-w" "-X main.BuildVersion=${version}" ];
doCheck = false;
passthru.tests.vesion = testVersion {
package = git-sizer;
2018-03-07 14:22:32 +00:00
};
meta = with lib; {
description = "Compute various size metrics for a Git repository";
2022-04-09 12:25:47 +00:00
homepage = "https://github.com/github/git-sizer";
2018-03-07 14:22:32 +00:00
license = licenses.mit;
maintainers = with maintainers; [ matthewbauer ];
};
}