about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-04-09 12:25:47 +0000
committerAaron Jheng <wentworth@outlook.com>2022-04-09 12:25:47 +0000
commitffaa19174ec3494a8933b0ef10bce50b5e358817 (patch)
treee038342b1189249a7beafe8c7f1834a88e4a4139
parent375eaf2b4fce26764ccddf347a0b422a82fe8e2b (diff)
git-sizer: 1.3.0 -> 1.5.0
-rw-r--r--pkgs/applications/version-management/git-sizer/default.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/applications/version-management/git-sizer/default.nix b/pkgs/applications/version-management/git-sizer/default.nix
index 049a2aa2c1d0b..daabe71bebb7d 100644
--- a/pkgs/applications/version-management/git-sizer/default.nix
+++ b/pkgs/applications/version-management/git-sizer/default.nix
@@ -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 ];
   };