mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
34 lines
646 B
Nix
34 lines
646 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mmctl";
|
|
version = "7.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mattermost";
|
|
repo = "mmctl";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-cD2RwawWhemhIf14NFEDmREmoaOSKyIxveSy75O7fcU=";
|
|
};
|
|
|
|
vendorHash = 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 ];
|
|
};
|
|
}
|