sources: manage mattermost with niv
also reenables mattermost also updated to version 5.34.2
This commit is contained in:
parent
148741f4c3
commit
ae8bf7c8f6
3 changed files with 30 additions and 18 deletions
|
@ -19,7 +19,7 @@
|
||||||
./services/monitoring.nix
|
./services/monitoring.nix
|
||||||
./services/workadventure.nix
|
./services/workadventure.nix
|
||||||
./services/minecraft.nix
|
./services/minecraft.nix
|
||||||
# ./services/mattermost.nix
|
./services/mattermost.nix
|
||||||
];
|
];
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
|
|
|
@ -17,6 +17,26 @@
|
||||||
"url": "https://github.com/nix-community/home-manager/archive/2aa20ae969f2597c4df10a094440a66e9d7f8c86.tar.gz",
|
"url": "https://github.com/nix-community/home-manager/archive/2aa20ae969f2597c4df10a094440a66e9d7f8c86.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
|
"mattermost-server": {
|
||||||
|
"branch": "release-5.31",
|
||||||
|
"description": "Open source Slack-alternative in Golang and React - Mattermost",
|
||||||
|
"homepage": "https://mattermost.com",
|
||||||
|
"owner": "mattermost",
|
||||||
|
"repo": "mattermost-server",
|
||||||
|
"rev": "7d89f8bc6ef757877572ef12f3c3c018858318d6",
|
||||||
|
"sha256": "18ip32asar8c34zhnf29v3a66a433443pz7rxa2f4vnp0ri1jil6",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/mattermost/mattermost-server/archive/7d89f8bc6ef757877572ef12f3c3c018858318d6.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
|
||||||
|
"version": "5.34.2"
|
||||||
|
},
|
||||||
|
"mattermost-webapp": {
|
||||||
|
"sha256": "1a1z3p166bs7ygnnbhm8b556wxmljnk2sj4q527jpr437f02fl6z",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.mattermost.com/5.34.2/mattermost-5.34.2-linux-amd64.tar.gz",
|
||||||
|
"url_template": "https://releases.mattermost.com/<version>/mattermost-<version>-linux-amd64.tar.gz",
|
||||||
|
"version": "5.34.2"
|
||||||
|
},
|
||||||
"mumble-website": {
|
"mumble-website": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"repo": "https://gitlab.infra4future.de/hacc/infra4future/mumble.infra4future.de.git",
|
"repo": "https://gitlab.infra4future.de/hacc/infra4future/mumble.infra4future.de.git",
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
{ stdenv, fetchurl, fetchFromGitHub, buildGoPackage, buildEnv }:
|
{ stdenv, fetchurl, fetchFromGitHub, buildGoPackage, buildEnv }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.30.3";
|
sources = import ../../nix/sources.nix;
|
||||||
|
version = sources.mattermost-webapp.version;
|
||||||
|
|
||||||
mattermost-server = buildGoPackage rec {
|
mattermost-server = buildGoPackage rec {
|
||||||
pname = "mattermost-server";
|
pname = "mattermost-server";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = sources.mattermost-server.outPath;
|
||||||
owner = "mattermost";
|
|
||||||
repo = "mattermost-server";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "sha256-cqP2gHv3v49EsAp0xVteKeSRSknchclmUV+9d8WN/18=";
|
|
||||||
};
|
|
||||||
|
|
||||||
goPackagePath = "github.com/mattermost/mattermost-server";
|
goPackagePath = "github.com/mattermost/mattermost-server";
|
||||||
|
|
||||||
|
@ -27,19 +23,15 @@ let
|
||||||
pname = "mattermost-webapp";
|
pname = "mattermost-webapp";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = sources.mattermost-webapp;
|
||||||
url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
|
|
||||||
sha256 = "sha256-ZQKwHZZtyhJEPk05eGZlHSNiQTc/LD+2+4zjfvE278A=";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
tar --strip 1 --directory $out -xf $src \
|
cp -r client $out
|
||||||
mattermost/client \
|
cp -r i18n $out
|
||||||
mattermost/i18n \
|
cp -r fonts $out
|
||||||
mattermost/fonts \
|
cp -r templates $out
|
||||||
mattermost/templates \
|
cp -r config $out
|
||||||
mattermost/config
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue