3
0
Fork 0
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:
Pascal Bach 2022-04-10 09:27:06 +02:00 committed by GitHub
commit 49cc8715be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};