2022-04-20 14:40:48 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, 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;
|
|
|
|
|
2022-04-20 14:40:48 +00:00
|
|
|
passthru.tests.vesion = testers.testVersion {
|
2022-04-09 12:25:47 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|