mattermost: 5.32.1 -> 5.37.2
This commit is contained in:
parent
3cef82c59b
commit
d52cc3154a
|
@ -1,23 +1,24 @@
|
|||
{ lib, stdenv, fetchurl, fetchFromGitHub, buildGoPackage, buildEnv }:
|
||||
{ lib, stdenv, fetchurl, fetchFromGitHub, buildGoModule, buildEnv }:
|
||||
|
||||
let
|
||||
version = "5.32.1";
|
||||
version = "5.37.2";
|
||||
|
||||
mattermost-server = buildGoPackage rec {
|
||||
mattermost-server = buildGoModule rec {
|
||||
pname = "mattermost-server";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mattermost";
|
||||
repo = "mattermost-server";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "BssrTfkIxUbXYXIfz9i+5b4rEYSzBim+/riK78m8Bxo=";
|
||||
sha256 = "sha256-kO5wSj/ApPhS2k9a9VjS3Qk55azNZeiFmevAxSkdGe0=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/mattermost/mattermost-server";
|
||||
vendorSha256 = null;
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [
|
||||
"-X ${goPackagePath}/model.BuildNumber=nixpkgs-${version}"
|
||||
"-s" "-w" "-X github.com/mattermost/mattermost-server/v${lib.versions.major version}/model.BuildNumber=${version}"
|
||||
];
|
||||
|
||||
};
|
||||
|
@ -28,7 +29,7 @@ let
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
|
||||
sha256 = "kRerl3fYRTrotj86AIFSor3GpjhABkCmego1ms9HmkQ=";
|
||||
sha256 = "sha256-BzQVkOPo/f6O2ncQ0taS3cZkglOL+D+zBcfNYrpMgTM=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue