2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mmctl";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "7.10.4";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattermost";
|
|
|
|
repo = "mmctl";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-N3WvVVx4djmW6+Nh2XAgv0fJgVVp2I0I3vnUuoEUXjo=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = null;
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
checkPhase = "make test";
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/mattermost/mmctl/v6/commands.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A remote CLI tool for Mattermost";
|
|
|
|
homepage = "https://github.com/mattermost/mmctl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ppom ];
|
|
|
|
};
|
|
|
|
}
|