1{ lib
2, fetchFromGitHub
3, buildGoModule
4}:
5
6buildGoModule rec {
7 pname = "mmctl";
8 version = "7.10.2";
9
10 src = fetchFromGitHub {
11 owner = "mattermost";
12 repo = "mmctl";
13 rev = "v${version}";
14 sha256 = "sha256-cD2RwawWhemhIf14NFEDmREmoaOSKyIxveSy75O7fcU=";
15 };
16
17 vendorHash = null;
18
19 checkPhase = "make test";
20
21 ldflags = [
22 "-s"
23 "-w"
24 "-X github.com/mattermost/mmctl/v6/commands.Version=${version}"
25 ];
26
27 meta = with lib; {
28 description = "A remote CLI tool for Mattermost";
29 homepage = "https://github.com/mattermost/mmctl";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ ppom ];
32 };
33}