2022-06-21 01:10:26 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildGoModule
|
|
|
|
}:
|
|
|
|
|
2021-12-22 11:12:27 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "mmctl";
|
2022-07-29 01:59:15 +01:00
|
|
|
version = "7.1.2";
|
2021-12-22 11:12:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattermost";
|
|
|
|
repo = "mmctl";
|
|
|
|
rev = "v${version}";
|
2022-07-29 01:59:15 +01:00
|
|
|
sha256 = "sha256-wqX6HVcI8PTE0gFYh03oxWRQ1Tzs/Z9V2cG9qu1MsLA=";
|
2021-12-22 11:12:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
checkPhase = "make test";
|
|
|
|
|
2022-06-21 01:10:26 +01:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/mattermost/mmctl/v6/commands.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-12-22 11:12:27 +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 ];
|
|
|
|
};
|
|
|
|
}
|