3
0
Fork 0
forked from mirrors/nixpkgs

mmctl: 7.10.5 -> 9.2.2 (#269709)

This commit is contained in:
Miguel de la Cruz 2023-11-30 04:30:28 +01:00 committed by GitHub
parent e8b8b40e00
commit 46f83cdd85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 9 deletions

View file

@ -0,0 +1,8 @@
--- a/go.mod
+++ b/go.mod
@@ -218,3 +218,5 @@ exclude (
github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09
github.com/willf/bitset v1.2.0
)
+
+replace github.com/mattermost/mattermost/server/public => ./public

View file

@ -5,30 +5,39 @@
buildGoModule rec {
pname = "mmctl";
version = "7.10.5";
version = "9.2.2";
src = fetchFromGitHub {
owner = "mattermost";
repo = "mmctl";
repo = "mattermost";
rev = "v${version}";
sha256 = "sha256-FQdxFvYJ+YrOc1p3/Ju3ZOGFH32WeZjHXtsIYG+O0U0=";
};
hash = "sha256-53L2F20vaLLxtQS3DP/u0ZxLtnXHmjfcOMbXd4i+A6Y=";
} + "/server";
vendorHash = null;
vendorHash = "sha256-v8aKZyb4emrwuIgSBDgla5wzwyt6PVGakbXjB9JVaCk=";
checkPhase = "make test";
patches = [ ./0001-module-replace-public.patch ];
subPackages = [ "cmd/mmctl" ];
checkPhase = "go test -tags unit -timeout 30m ./cmd/mmctl/...";
ldflags = [
"-s"
"-w"
"-X github.com/mattermost/mmctl/v6/commands.Version=${version}"
"-X github.com/mattermost/mattermost/server/public/model.Version=${version}"
"-X github.com/mattermost/mattermost/server/public/model.BuildNumber=${version}-nixpkgs"
"-X github.com/mattermost/mattermost/server/public/model.BuildDate=1970-01-01"
"-X github.com/mattermost/mattermost/server/public/model.BuildHash=v${version}"
"-X github.com/mattermost/mattermost/server/public/model.BuildHashEnterprise=none"
"-X github.com/mattermost/mattermost/server/public/model.BuildEnterpriseReady=false"
];
meta = with lib; {
description = "A remote CLI tool for Mattermost";
homepage = "https://github.com/mattermost/mmctl";
license = licenses.asl20;
maintainers = with maintainers; [ ppom ];
maintainers = with maintainers; [ ppom mgdelacroix ];
mainProgram = "mmctl";
};
}

View file

@ -6009,7 +6009,11 @@ with pkgs;
mlarchive2maildir = callPackage ../applications/networking/mailreaders/mlarchive2maildir { };
mmctl = callPackage ../tools/misc/mmctl { };
mmctl = callPackage ../tools/misc/mmctl {
# mmctl tests currently fail with go1.21. See
# https://mattermost.atlassian.net/browse/MM-55465
buildGoModule = buildGo120Module;
};
moar = callPackage ../tools/misc/moar { };