mattermost: jump ESR versions 7.8.x → 8.1.3

package definition adjusted by comparing to the current version in
Nixpkgs.
onlyoffice-nix
stuebinm 2023-10-07 22:27:23 +02:00
parent a4288d77ce
commit e03bf84d3a
3 changed files with 22 additions and 18 deletions

View File

@ -399,16 +399,16 @@
"mattermost-server": { "mattermost-server": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1696262281, "lastModified": 1696335118,
"narHash": "sha256-VEEm4G0867NzavjdpCP5bDJEnp4NdnUPHCcAS0cox5Q=", "narHash": "sha256-Xcg24hnQqrq/hW+tlzpdNUmvrC/3zIXzyi2ZkU1a96U=",
"owner": "mattermost", "owner": "mattermost",
"repo": "mattermost-server", "repo": "mattermost-server",
"rev": "b69ff7d1038609a4a29a7db104679d21da10ad09", "rev": "4fe1024a51f22f239c19c33838dbdcf7589b7b94",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "mattermost", "owner": "mattermost",
"ref": "v7.8.12", "ref": "v8.1.3",
"repo": "mattermost-server", "repo": "mattermost-server",
"type": "github" "type": "github"
} }
@ -416,13 +416,13 @@
"mattermost-webapp": { "mattermost-webapp": {
"flake": false, "flake": false,
"locked": { "locked": {
"narHash": "sha256-66kCatGNaRi0HrPHteDdu8+hQp4BLql75+f6jqO6MBg=", "narHash": "sha256-OZQ5owWT6lBqloSFs7fViAim7zTHd8YVcXmQJadg4wU=",
"type": "tarball", "type": "tarball",
"url": "https://releases.mattermost.com/7.8.12/mattermost-7.8.12-linux-amd64.tar.gz" "url": "https://releases.mattermost.com/8.1.3/mattermost-8.1.3-linux-amd64.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
"url": "https://releases.mattermost.com/7.8.12/mattermost-7.8.12-linux-amd64.tar.gz" "url": "https://releases.mattermost.com/8.1.3/mattermost-8.1.3-linux-amd64.tar.gz"
} }
}, },
"nix-doom-emacs": { "nix-doom-emacs": {

View File

@ -2,9 +2,9 @@
description = "hacc infra stuff"; description = "hacc infra stuff";
inputs = { inputs = {
mattermost-webapp.url = "https://releases.mattermost.com/7.8.12/mattermost-7.8.12-linux-amd64.tar.gz"; mattermost-webapp.url = "https://releases.mattermost.com/8.1.3/mattermost-8.1.3-linux-amd64.tar.gz";
mattermost-webapp.flake = false; mattermost-webapp.flake = false;
mattermost-server.url = "github:mattermost/mattermost-server?ref=v7.8.12"; mattermost-server.url = "github:mattermost/mattermost-server?ref=v8.1.3";
mattermost-server.flake = false; mattermost-server.flake = false;
nixpkgs.url = "nixpkgs/nixos-23.05"; nixpkgs.url = "nixpkgs/nixos-23.05";

View File

@ -1,24 +1,28 @@
{ stdenv, fetchurl, fetchFromGitHub, buildGo118Module, buildEnv, lib, sources }: { stdenv, fetchurl, fetchFromGitHub, buildGoModule, buildEnv, lib, sources }:
let let
version = "7.8.12"; version = "8.1.3";
mattermost-server = buildGo118Module rec { mattermost-server = buildGoModule rec {
pname = "mattermost-server"; pname = "mattermost-server";
inherit version; inherit version;
src = sources.mattermost-server.outPath; src = "${sources.mattermost-server}/server";
vendorSha256 = "sha256-VvGLYOESyoBpFmIibHWxazliHcscMxf3KcQ46NQ4syk="; vendorSha256 = "sha256-uHKd8shLDVd+zjRhEJcxAn+H9e9jqEM8XXqYx7B4hiQ=";
subPackages = [ "cmd/mattermost" ]; subPackages = [ "cmd/mattermost" ];
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"
"-X github.com/mattermost/mattermost-server/model.BuildNumber=nixpkgs-${version}" "-X github.com/mattermost/mattermost/server/public/model.Version=${version}"
"-X github.com/mattermost/mattermost/server/public/model.BuildNumber=${version}-haccfiles"
"-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"
]; ];
}; };
mattermost-webapp = stdenv.mkDerivation { mattermost-webapp = stdenv.mkDerivation {