Compare commits
3 commits
5d598bafaa
...
1cc938a0b8
Author | SHA1 | Date | |
---|---|---|---|
1cc938a0b8 | |||
c3c7fe44de | |||
eaa25de128 |
2 changed files with 15 additions and 14 deletions
18
flake.lock
18
flake.lock
|
@ -89,11 +89,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723311493,
|
"lastModified": 1724013388,
|
||||||
"narHash": "sha256-aA1JNhFh97BHPTXoJvcvgG4VSyjx0U1wT2EivxMp77o=",
|
"narHash": "sha256-vAq+I0IWsIDq5RUc01t25iL46LLxdsmlTJ96A30bMEY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c306d09c1dc6492442ae4af0d1ba575869c41fc3",
|
"rev": "3f38e71a8e23a27569acbbfee0e83b76c86fa569",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -120,11 +120,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723418128,
|
"lastModified": 1724050343,
|
||||||
"narHash": "sha256-k1pEqsnB6ikZyasXbtV6A9akPZMKlsyENPDUA6PXoJo=",
|
"narHash": "sha256-tGRPGJKwczrM7793zaR74KnuYLMHArJvYXmGu8Wo9oI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "129f579cbb5b4c1ad258fd96bdfb78eb14802727",
|
"rev": "ed434d7889eddb68002d81bc25212f26ff8f2862",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -154,11 +154,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723454404,
|
"lastModified": 1723501126,
|
||||||
"narHash": "sha256-Zhcf1TMDYb0BxDHKhEKCKFb1qi2vwlX0BgJPwk9Gd3E=",
|
"narHash": "sha256-N9IcHgj/p1+2Pvk8P4Zc1bfrMwld5PcosVA0nL6IGdE=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "ab2d1ffeb5b85da2f6537beb2fe05da54276c261",
|
"rev": "be0eec2d27563590194a9206f551a6f73d52fa34",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -12,13 +12,13 @@ buildGoModule rec {
|
||||||
# See https://docs.mattermost.com/upgrade/extended-support-release.html
|
# See https://docs.mattermost.com/upgrade/extended-support-release.html
|
||||||
# When a new ESR version is available (e.g. 8.1.x -> 9.5.x), update
|
# When a new ESR version is available (e.g. 8.1.x -> 9.5.x), update
|
||||||
# the version regex in passthru.updateScript as well.
|
# the version regex in passthru.updateScript as well.
|
||||||
version = "9.5.8";
|
version = "9.11.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mattermost";
|
owner = "mattermost";
|
||||||
repo = "mattermost";
|
repo = "mattermost";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-WK3O1t2mMqftH8EB12g1/xzQnnmJxSsBjaGrRk0Hypw=";
|
hash = "sha256-Qs5/f2wltG7HRTOVxfS+6C9CP+NR475ix/4XHezKxIc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Needed because buildGoModule does not support go workspaces yet.
|
# Needed because buildGoModule does not support go workspaces yet.
|
||||||
|
@ -34,10 +34,10 @@ buildGoModule rec {
|
||||||
|
|
||||||
webapp = fetchurl {
|
webapp = fetchurl {
|
||||||
url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
|
url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
|
||||||
hash = "sha256-gUp/Y0hI3oZkyTnEvyNXtHtPx77MC5zz+Z4b0FdrsqM=";
|
hash = "sha256-KT8hYVhjAvSluqnZ2IGX9RdCb8EqLtIyQuIKJkf+9No=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-TJCtgNf56A1U0EbV5gXjTro+YudVBRWiSZoBC3nJxnE=";
|
vendorHash = "sha256-0rxLt2ODlGsC3z5qw7m7QsverKrTtWicnHep4+fDD3M=";
|
||||||
|
|
||||||
modRoot = "./server";
|
modRoot = "./server";
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -45,6 +45,7 @@ buildGoModule rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
subPackages = [ "cmd/mattermost" ];
|
subPackages = [ "cmd/mattermost" ];
|
||||||
|
offlineCache = webapp;
|
||||||
|
|
||||||
tags = [ "production" ];
|
tags = [ "production" ];
|
||||||
|
|
||||||
|
@ -69,7 +70,7 @@ buildGoModule rec {
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
updateScript = nix-update-script {
|
updateScript = nix-update-script {
|
||||||
extraArgs = [ "--version-regex" "^v(9\.5\.([0-9.]+))" ];
|
extraArgs = [ "--version-regex" "^v(9\.11\.([0-9.]+))" ];
|
||||||
};
|
};
|
||||||
tests.mattermost = nixosTests.mattermost;
|
tests.mattermost = nixosTests.mattermost;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue