about summary refs log tree commit diff
path: root/pkgs/tools/misc/mmctl
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2022-06-21 03:10:26 +0300
committerIlan Joselevich <personal@ilanjoselevich.com>2022-06-21 19:07:23 +0300
commitad439443f11aeeff9a63171b604bd8dc6d78321d (patch)
tree2e84fc3fc4490de960d6ba55e589b08ab82b2451 /pkgs/tools/misc/mmctl
parent21738df66b20c274118395cd63460097b0a3e8fd (diff)
mmctl: 6.4.2 -> 7.0.0
Diffstat (limited to 'pkgs/tools/misc/mmctl')
-rw-r--r--pkgs/tools/misc/mmctl/default.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/pkgs/tools/misc/mmctl/default.nix b/pkgs/tools/misc/mmctl/default.nix
index c9de0bf14ca8c..9c1fe59854f40 100644
--- a/pkgs/tools/misc/mmctl/default.nix
+++ b/pkgs/tools/misc/mmctl/default.nix
@@ -1,24 +1,33 @@
-{ lib, fetchFromGitHub, buildGoModule }:
+{ lib
+, fetchFromGitHub
+, buildGoModule
+}:
+
 buildGoModule rec {
   pname = "mmctl";
-  version = "6.4.2";
+  version = "7.0.0";
 
   src = fetchFromGitHub {
     owner = "mattermost";
     repo = "mmctl";
     rev = "v${version}";
-    sha256 = "sha256-FlqkY4LvAW9Cibs+3UkMDWA+uc62wMh13BllWuxjVZU=";
+    sha256 = "sha256-X9IvuH3LrysqcL0JZIchE9n51w7eQTFE2NWUTXMnRYs=";
   };
 
   vendorSha256 = null;
 
   checkPhase = "make test";
 
+  ldflags = [
+    "-s"
+    "-w"
+    "-X github.com/mattermost/mmctl/v6/commands.Version=${version}"
+  ];
+
   meta = with lib; {
     description = "A remote CLI tool for Mattermost";
     homepage = "https://github.com/mattermost/mmctl";
     license = licenses.asl20;
     maintainers = with maintainers; [ ppom ];
-    platforms = platforms.linux ++ platforms.darwin;
   };
 }