···1+{
2+ mattermost,
3+}:
4+5+mattermost.override {
6+ versionInfo = {
7+ # Latest, non-RC releases only.
8+ # If the latest is an ESR (Extended Support Release),
9+ # duplicate it here to facilitate the update script.
10+ # See https://docs.mattermost.com/about/mattermost-server-releases.html
11+ # and make sure the version regex is up to date here.
12+ # Ensure you also check ../mattermost/package.nix for ESR releases.
13+ regex = "^v(10\.[0-9]+\.[0-9]+)$";
14+ version = "10.4.1";
15+ srcHash = "sha256-e7uT30tWhJpEQzlcDUY2huFcupDbe4l8B19Dgub2pg0=";
16+ vendorHash = "sha256-AcemUxcBoytE/ZoXqaIlxkzAnmGV/C1laDqziMuE+XE=";
17+ npmDepsHash = "sha256-HABPwdhtev9DZLhWJQsyU4g2ZueYgsX+tUduMsc74YY=";
18+ lockfileOverlay = ''
19+ unlock(.; "@floating-ui/react"; "channels/node_modules/@floating-ui/react")
20+ '';
21+ autoUpdate = ./package.nix;
22+ };
23+}
···127128 # TODO: cleanup with mass-rebuild
129 installCheckPhase = ''
130- if [ ! -e $lib/${python3.sitePackages}/lldb/_lldb*.so ] ; then
131 echo "ERROR: python files not installed where expected!";
132 return 1;
133 fi
134 '' # Something lua is built on older versions but this file doesn't exist.
135 + lib.optionalString (lib.versionAtLeast release_version "14") ''
136- if [ ! -e "$lib/lib/lua/${lua5_3.luaversion}/lldb.so" ] ; then
137 echo "ERROR: lua files not installed where expected!";
138 return 1;
139 fi
···127128 # TODO: cleanup with mass-rebuild
129 installCheckPhase = ''
130+ if [ ! -e ''${!outputLib}/${python3.sitePackages}/lldb/_lldb*.so ] ; then
131 echo "ERROR: python files not installed where expected!";
132 return 1;
133 fi
134 '' # Something lua is built on older versions but this file doesn't exist.
135 + lib.optionalString (lib.versionAtLeast release_version "14") ''
136+ if [ ! -e "''${!outputLib}/lib/lua/${lua5_3.luaversion}/lldb.so" ] ; then
137 echo "ERROR: lua files not installed where expected!";
138 return 1;
139 fi
···2005 - ghc-clippy-plugin # failure in job https://hydra.nixos.org/build/233227499 at 2023-09-02
2006 - ghc-core-smallstep # failure in job https://hydra.nixos.org/build/233209763 at 2023-09-02
2007 - ghc-corroborate # failure in job https://hydra.nixos.org/build/233223692 at 2023-09-02
2008- - ghc-datasize # failure in job https://hydra.nixos.org/build/233196292 at 2023-09-02
2009 - ghc-definitions-th # failure in job https://hydra.nixos.org/build/233254844 at 2023-09-02
2010 - ghc-dump-core # failure in job https://hydra.nixos.org/build/233214478 at 2023-09-02
2011 - ghc-dump-tree # failure in job https://hydra.nixos.org/build/233237228 at 2023-09-02
···4990 - rattle # failure in job https://hydra.nixos.org/build/233234335 at 2023-09-02
4991 - rattletrap # failure in job https://hydra.nixos.org/build/233206840 at 2023-09-02
4992 - raven-haskell-scotty # failure in job https://hydra.nixos.org/build/233244270 at 2023-09-02
04993 - raylib-imgui # failure in job https://hydra.nixos.org/build/233222471 at 2023-09-02
4994 - raz # failure in job https://hydra.nixos.org/build/233218482 at 2023-09-02
4995 - rbst # failure in job https://hydra.nixos.org/build/233238184 at 2023-09-02
···2005 - ghc-clippy-plugin # failure in job https://hydra.nixos.org/build/233227499 at 2023-09-02
2006 - ghc-core-smallstep # failure in job https://hydra.nixos.org/build/233209763 at 2023-09-02
2007 - ghc-corroborate # failure in job https://hydra.nixos.org/build/233223692 at 2023-09-02
02008 - ghc-definitions-th # failure in job https://hydra.nixos.org/build/233254844 at 2023-09-02
2009 - ghc-dump-core # failure in job https://hydra.nixos.org/build/233214478 at 2023-09-02
2010 - ghc-dump-tree # failure in job https://hydra.nixos.org/build/233237228 at 2023-09-02
···4989 - rattle # failure in job https://hydra.nixos.org/build/233234335 at 2023-09-02
4990 - rattletrap # failure in job https://hydra.nixos.org/build/233206840 at 2023-09-02
4991 - raven-haskell-scotty # failure in job https://hydra.nixos.org/build/233244270 at 2023-09-02
4992+ - rawr # fails to build after unbreaking ghc-datasize at 2025-01-19
4993 - raylib-imgui # failure in job https://hydra.nixos.org/build/233222471 at 2023-09-02
4994 - raz # failure in job https://hydra.nixos.org/build/233218482 at 2023-09-02
4995 - rbst # failure in job https://hydra.nixos.org/build/233238184 at 2023-09-02
···21 patchShebangs cli/*.php app/actualize_script.php
22 '';
2324- # the thirdparty_extension_path can only be set by config, but should be read by an env-var.
25 overrideConfig = writeText "constants.local.php" ''
26 <?php
27- define('THIRDPARTY_EXTENSIONS_PATH', getenv('THIRDPARTY_EXTENSIONS_PATH') . '/extensions');
00028 '';
2930 buildInputs = [ php ];
···21 patchShebangs cli/*.php app/actualize_script.php
22 '';
2324+ # THIRDPARTY_EXTENSIONS_PATH can only be set by config, but should be read from an env-var.
25 overrideConfig = writeText "constants.local.php" ''
26 <?php
27+ $thirdpartyExtensionsPath = getenv('THIRDPARTY_EXTENSIONS_PATH');
28+ if (is_string($thirdpartyExtensionsPath) && $thirdpartyExtensionsPath !== "") {
29+ define('THIRDPARTY_EXTENSIONS_PATH', $thirdpartyExtensionsPath . '/extensions');
30+ }
31 '';
3233 buildInputs = [ php ];