forked from mirrors/nixpkgs
Merge pull request #167988 from aaronjheng/git-sizer
git-sizer: 1.3.0 -> 1.5.0
This commit is contained in:
commit
49cc8715be
|
@ -1,20 +1,29 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, testVersion, git-sizer }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "git-sizer";
|
||||
version = "1.3.0";
|
||||
|
||||
goPackagePath = "github.com/github/git-sizer";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "github";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0kmyvai5xfalm56ywa6mhdvvjnacdzwcyz28bw0pz9a4gyf1mgvh";
|
||||
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;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compute various size metrics for a Git repository";
|
||||
homepage = "https://github.com/github/git-sizer";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ matthewbauer ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue