about summary refs log tree commit diff
path: root/pkgs/servers/mattermost
diff options
context:
space:
mode:
authorMiguel de la Cruz <miguel@mcrx.me>2023-11-24 23:58:45 +0100
committerMiguel de la Cruz <miguel@mcrx.me>2023-12-01 22:50:08 +0100
commit6f4478c35fb36b89402d70e1af4946987663616c (patch)
tree201b263902ddedd62877f9e2f5a984021fdb3f0b /pkgs/servers/mattermost
parent0d1c51c1bb0642cfa4f48b248911132b1fcaeb87 (diff)
mattermost: 8.1.4 -> 8.1.6
(cherry picked from commit 931cd3aef015fd9ae5bd6c72f3fac346195c8511)
Diffstat (limited to 'pkgs/servers/mattermost')
-rw-r--r--pkgs/servers/mattermost/0001-module-replace-public.patch8
-rw-r--r--pkgs/servers/mattermost/default.nix14
2 files changed, 5 insertions, 17 deletions
diff --git a/pkgs/servers/mattermost/0001-module-replace-public.patch b/pkgs/servers/mattermost/0001-module-replace-public.patch
deleted file mode 100644
index 3f4effdccb81b..0000000000000
--- a/pkgs/servers/mattermost/0001-module-replace-public.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- a/go.mod
-+++ b/go.mod
-@@ -218,3 +217,5 @@ exclude (
- 	github.com/dyatlov/go-opengraph v0.0.0-20210112100619-dae8665a5b09
- 	github.com/willf/bitset v1.2.0
- )
-+
-+replace github.com/mattermost/mattermost/server/public => ./public
diff --git a/pkgs/servers/mattermost/default.nix b/pkgs/servers/mattermost/default.nix
index 6fd721124c969..60024800a1514 100644
--- a/pkgs/servers/mattermost/default.nix
+++ b/pkgs/servers/mattermost/default.nix
@@ -8,23 +8,21 @@
 
 buildGoModule rec {
   pname = "mattermost";
-  version = "9.2.2";
+  version = "8.1.6";
 
   src = fetchFromGitHub {
     owner = "mattermost";
     repo = "mattermost";
     rev = "v${version}";
-    hash = "sha256-53L2F20vaLLxtQS3DP/u0ZxLtnXHmjfcOMbXd4i+A6Y=";
+    hash = "sha256-vJ5+ZiA7bOKvA2VMMIOkIEKz/XN/m/cQViJgKlyHUp0=";
   } + "/server";
 
   webapp = fetchurl {
     url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz";
-    hash = "sha256-/6SKqSXH8sW70rYt4MmABWNQP/JDAA1lxuvCJhqEoTI=";
+    hash = "sha256-crpX2creK2tbmIULWi3perRGtFWaKw9m8v7OCjBd1Fw=";
   };
 
-  vendorHash = "sha256-v8aKZyb4emrwuIgSBDgla5wzwyt6PVGakbXjB9JVaCk=";
-
-  patches = [ ./0001-module-replace-public.patch ];
+  vendorHash = "sha256-25nyneJ+ynM9WdnnLd4L3a720ecKdhJ1vyRG5lx2mgY=";
 
   subPackages = [ "cmd/mattermost" ];
 
@@ -35,12 +33,10 @@ buildGoModule rec {
     "-w"
     "-X github.com/mattermost/mattermost/server/public/model.Version=${version}"
     "-X github.com/mattermost/mattermost/server/public/model.BuildNumber=${version}-nixpkgs"
-    "-X github.com/mattermost/mattermost/server/public/model.BuildDate=n/a"
+    "-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=none"
     "-X github.com/mattermost/mattermost/server/public/model.BuildEnterpriseReady=false"
-    "-X github.com/mattermost/mattermost/server/public/model.MockCWS=false"
-    "-X github.com/mattermost/mattermost/server/public/model.MattermostGiphySdkKey="
   ];
 
   postInstall = ''