mattermost 8.1.9 → 8.1.10 (cursed)
see the comment in pkgs/mattermost.nix
This commit is contained in:
parent
7427df5167
commit
2988939be0
3 changed files with 26 additions and 13 deletions
16
flake.lock
16
flake.lock
|
@ -257,16 +257,16 @@
|
||||||
"mattermost-server": {
|
"mattermost-server": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1706285139,
|
"lastModified": 1707502341,
|
||||||
"narHash": "sha256-7VjwJpzn0nl9QHWhqdjkhXKymutbwsagGSSZ4Si76bI=",
|
"narHash": "sha256-eloO83koCNZOR/NYzUCdKOtVdF7rk+VrZ9U2bKWkxNU=",
|
||||||
"owner": "mattermost",
|
"owner": "mattermost",
|
||||||
"repo": "mattermost-server",
|
"repo": "mattermost-server",
|
||||||
"rev": "4c83724516242843802cc75840b08ead6afbd37b",
|
"rev": "674f549daf0e74933845be0ae32827e498137b63",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "mattermost",
|
"owner": "mattermost",
|
||||||
"ref": "v8.1.9",
|
"ref": "v8.1.10",
|
||||||
"repo": "mattermost-server",
|
"repo": "mattermost-server",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -274,14 +274,14 @@
|
||||||
"mattermost-webapp": {
|
"mattermost-webapp": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1706286055,
|
"lastModified": 1707771700,
|
||||||
"narHash": "sha256-lnOz/XGGNqpJyQpWLOJ12cQpzfaZ0GfWNWwqy9spf3o=",
|
"narHash": "sha256-5PYPNcUGcQmn9RgUbtv3U/s+pRB1a2CgZwxDnunuToA=",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://releases.mattermost.com/8.1.9/mattermost-8.1.9-linux-amd64.tar.gz"
|
"url": "https://releases.mattermost.com/8.1.10/mattermost-8.1.10-linux-amd64.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://releases.mattermost.com/8.1.9/mattermost-8.1.9-linux-amd64.tar.gz"
|
"url": "https://releases.mattermost.com/8.1.10/mattermost-8.1.10-linux-amd64.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"napalm": {
|
"napalm": {
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
description = "hacc infra stuff";
|
description = "hacc infra stuff";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
mattermost-webapp.url = "https://releases.mattermost.com/8.1.9/mattermost-8.1.9-linux-amd64.tar.gz";
|
mattermost-webapp.url = "https://releases.mattermost.com/8.1.10/mattermost-8.1.10-linux-amd64.tar.gz";
|
||||||
mattermost-webapp.flake = false;
|
mattermost-webapp.flake = false;
|
||||||
mattermost-server.url = "github:mattermost/mattermost-server?ref=v8.1.9";
|
mattermost-server.url = "github:mattermost/mattermost-server?ref=v8.1.10";
|
||||||
mattermost-server.flake = false;
|
mattermost-server.flake = false;
|
||||||
|
|
||||||
nixpkgs.url = "nixpkgs/nixos-23.11";
|
nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ stdenv, fetchurl, fetchFromGitHub, buildGoModule, buildEnv, lib, sources }:
|
{ stdenv, fetchurl, fetchFromGitHub, buildGoModule, buildEnv, lib, sources }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "8.1.9";
|
version = "8.1.10";
|
||||||
|
|
||||||
mattermost-server = buildGoModule rec {
|
mattermost-server = buildGoModule rec {
|
||||||
pname = "mattermost-server";
|
pname = "mattermost-server";
|
||||||
|
@ -9,7 +9,19 @@ let
|
||||||
|
|
||||||
src = "${sources.mattermost-server}/server";
|
src = "${sources.mattermost-server}/server";
|
||||||
|
|
||||||
vendorHash = "sha256-E5hW2/TlyE6Qnw50AQYUxOttW1FUPMCB6Ok0fQIqbUE=";
|
# this is a hack. with it uncommented, the dependencies as specified by the vendor
|
||||||
|
# hash can be built, but not the package itself. without it, the package itself
|
||||||
|
# can be built, but not its dependencies. Thus the only way to build this package
|
||||||
|
# for now is to run it twice, and rely on the nix store's caching
|
||||||
|
#
|
||||||
|
# this bit is cursed, and i am too tired to try and fix it now
|
||||||
|
# ~terru
|
||||||
|
|
||||||
|
# preBuild = ''
|
||||||
|
# go mod tidy
|
||||||
|
# '';
|
||||||
|
|
||||||
|
vendorHash = "sha256-ZbLSxG9Gyhk7PBC2V6sMtrQNXvm+ugMfliFIHWO1VLs=";
|
||||||
|
|
||||||
subPackages = [ "cmd/mattermost" ];
|
subPackages = [ "cmd/mattermost" ];
|
||||||
|
|
||||||
|
@ -20,8 +32,9 @@ let
|
||||||
"-X github.com/mattermost/mattermost/server/public/model.BuildNumber=${version}-haccfiles"
|
"-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.BuildDate=1970-01-01"
|
||||||
"-X github.com/mattermost/mattermost/server/public/model.BuildHash=v${version}"
|
"-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.BuildHashEnterprise=none"
|
||||||
"-X github.com/mattermost/mattermost/server/public/model.BuildEnterpriseReady=false"
|
"-X github.com/mattermost/mattermost/server/public/model.BuildEnterpriseReady=false"
|
||||||
|
"-X github.com/mattermost/mattermost/server/public/model.MockCWS=false"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue