forked from hacc/haccfiles
stuebinm
a3689d1c76
this is a security update, see https://mattermost.com/blog/mattermost-security-updates-7-9-2-7-8-3-esr-7-7-4-7-1-8-esr-released/ for more.
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ stdenv, fetchurl, fetchFromGitHub, buildGo118Module, buildEnv, lib, sources }:
|
|
|
|
let
|
|
version = "7.1.8";
|
|
|
|
mattermost-server = buildGo118Module rec {
|
|
pname = "mattermost-server";
|
|
inherit version;
|
|
|
|
src = sources.mattermost-server.outPath;
|
|
|
|
vendorSha256 = "sha256-98riYN6MaBsKyaueogjXI7x3Lcionk0xcGt4DH684QU=";
|
|
|
|
subPackages = [ "cmd/mattermost" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/mattermost/mattermost-server/model.BuildNumber=nixpkgs-${version}"
|
|
];
|
|
|
|
};
|
|
|
|
mattermost-webapp = stdenv.mkDerivation {
|
|
pname = "mattermost-webapp";
|
|
inherit version;
|
|
|
|
src = sources.mattermost-webapp;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -r client $out
|
|
cp -r i18n $out
|
|
cp -r fonts $out
|
|
cp -r templates $out
|
|
cp -r config $out
|
|
'';
|
|
};
|
|
|
|
in
|
|
buildEnv {
|
|
name = "mattermost-${version}";
|
|
paths = [ mattermost-server mattermost-webapp ];
|
|
|
|
meta = with lib; {
|
|
description = "Open-source, self-hosted Slack-alternative";
|
|
homepage = "https://www.mattermost.org";
|
|
license = with licenses; [ agpl3 asl20 ];
|
|
maintainers = with maintainers; [ fpletz ryantm ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|