2022-06-21 01:24:30 +02:00
|
|
|
{ lib
|
2022-06-29 23:13:54 +02:00
|
|
|
, buildGoModule
|
2022-06-21 01:24:30 +02:00
|
|
|
, fetchFromGitHub
|
mattermost: 7.10.2 -> 7.10.3
Fixes security issues MMSA-2023-00190, MMSA-2023-00175, MMSA-2023-00202, MMSA-2023-00174,
MMSA-2023-00169, MMSA-2023-00186, MMSA-2023-00200, MMSA-2023-00178, MMSA-2023-00185, MMSA-2023-00176,
MMSA-2023-00147 and MMSA-2023-00168.
Release announcement:
https://mattermost.com/blog/mattermost-security-updates-7-10-3-7-9-5-7-8-7-esr-released/
2023-07-08 10:17:04 +02:00
|
|
|
, fetchpatch
|
2022-06-21 01:24:30 +02:00
|
|
|
, fetchurl
|
|
|
|
, nixosTests
|
|
|
|
}:
|
|
|
|
|
2022-06-29 23:13:54 +02:00
|
|
|
buildGoModule rec {
|
2022-06-21 01:24:30 +02:00
|
|
|
pname = "mattermost";
|
2023-09-23 20:05:24 +02:00
|
|
|
version = "8.1.2";
|
2022-06-21 01:24:30 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mattermost";
|
mattermost: 7.10.2 -> 7.10.3
Fixes security issues MMSA-2023-00190, MMSA-2023-00175, MMSA-2023-00202, MMSA-2023-00174,
MMSA-2023-00169, MMSA-2023-00186, MMSA-2023-00200, MMSA-2023-00178, MMSA-2023-00185, MMSA-2023-00176,
MMSA-2023-00147 and MMSA-2023-00168.
Release announcement:
https://mattermost.com/blog/mattermost-security-updates-7-10-3-7-9-5-7-8-7-esr-released/
2023-07-08 10:17:04 +02:00
|
|
|
repo = "mattermost";
|
2022-06-21 01:24:30 +02:00
|
|
|
rev = "v${version}";
|
2023-09-23 20:05:24 +02:00
|
|
|
hash = "sha256-hOt3xqrCs7akWyCv/6keiZN0ReF2adwiQNVibKFG3mk=";
|
|
|
|
} + "/server";
|
2018-05-16 19:09:19 +02:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
webapp = fetchurl {
|
|
|
|
url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
|
2023-09-23 20:05:24 +02:00
|
|
|
hash = "sha256-cIfUIGp51dyfmY3LnV+1F9CX+y5XyTCez6R8TLLz9fo=";
|
2016-08-15 03:17:05 +02:00
|
|
|
};
|
|
|
|
|
2023-09-23 20:05:24 +02:00
|
|
|
vendorHash = "sha256-3OZUWg4e2h7g15FXxiFKk2EXceHP4phBTpyy/uY2Ni4=";
|
2021-12-31 09:15:17 +01:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
subPackages = [ "cmd/mattermost" ];
|
2021-12-31 09:15:17 +01:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-09-23 20:05:24 +02:00
|
|
|
"-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=v${version}"
|
|
|
|
"-X github.com/mattermost/mattermost/server/public/model.BuildEnterpriseReady=false"
|
2022-06-21 01:24:30 +02:00
|
|
|
];
|
2021-12-31 09:15:17 +01:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
postInstall = ''
|
|
|
|
tar --strip 1 --directory $out -xf $webapp \
|
|
|
|
mattermost/{client,i18n,fonts,templates,config}
|
2018-05-16 19:09:19 +02:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
# For some reason a bunch of these files are executable
|
|
|
|
find $out/{client,i18n,fonts,templates,config} -type f -exec chmod -x {} \;
|
|
|
|
'';
|
2018-05-16 19:09:19 +02:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
passthru.tests.mattermost = nixosTests.mattermost;
|
2022-01-24 00:56:02 +01:00
|
|
|
|
2022-06-21 01:24:30 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mattermost is an open source platform for secure collaboration across the entire software development lifecycle";
|
|
|
|
homepage = "https://www.mattermost.org";
|
|
|
|
license = with licenses; [ agpl3 asl20 ];
|
2022-08-03 14:13:56 +02:00
|
|
|
maintainers = with maintainers; [ ryantm numinit kranzes ];
|
2016-08-15 03:17:05 +02:00
|
|
|
};
|
2022-06-21 01:24:30 +02:00
|
|
|
}
|