about summary refs log tree commit diff
path: root/pkgs/tools/system/goreman
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-07-26 10:50:08 +0000
committerAaron Jheng <wentworth@outlook.com>2022-07-26 11:28:41 +0000
commit21f4acbacecb9415c9c6621d3ecaf4602b20ea07 (patch)
treed1e6824eb51c1c35d382a53b8d6d94011d731eae /pkgs/tools/system/goreman
parent28e2fa05340c0c20f16edddc51c5e953adf659b3 (diff)
goreman: 0.3.11 -> 0.3.13
Diffstat (limited to 'pkgs/tools/system/goreman')
-rw-r--r--pkgs/tools/system/goreman/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/tools/system/goreman/default.nix b/pkgs/tools/system/goreman/default.nix
index 51d70fbc93335..a9e840860bc6c 100644
--- a/pkgs/tools/system/goreman/default.nix
+++ b/pkgs/tools/system/goreman/default.nix
@@ -1,24 +1,24 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, testers, goreman }:
 
 buildGoModule rec {
   pname = "goreman";
-  version = "0.3.11";
-  rev = "6006c6e410ec5a5ba22b50e96227754a42f2834d";
+  version = "0.3.13";
 
   src = fetchFromGitHub {
     owner = "mattn";
     repo = "goreman";
     rev = "v${version}";
-    sha256 = "sha256-TbJfeU94wakI2028kDqU+7dRRmqXuqpPeL4XBaA/HPo=";
+    sha256 = "sha256-BQMRkXHac2Is3VvqrBFA+/NrR3sw/gA1k3fPi3EzONQ=";
   };
 
-  ldflags = [
-    "-s"
-    "-w"
-    "-X main.revision=${builtins.substring 0 7 rev}"
-  ];
+  vendorSha256 = "sha256-BWfhvJ6kPz3X3TpHNvRIBgfUAQJB2f/lngRvHq91uyw=";
 
-  vendorSha256 = "sha256-87aHBRWm5Odv6LeshZty5N31sC+vdSwGlTYhk3BZkPo=";
+  ldflags = [ "-s" "-w" ];
+
+  passthru.tests.version = testers.testVersion {
+    package = goreman;
+    command = "goreman version";
+  };
 
   meta = with lib; {
     description = "foreman clone written in go language";