mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 07:01:12 +00:00
mattermostLatest: don't test unofficial patches
Warn if the user tries to enable them, and disable them in tests because it's too much work to maintain them.
This commit is contained in:
@@ -66,12 +66,7 @@ import ../make-test-python.nix (
|
||||
|
||||
# Upgrade to the latest Mattermost.
|
||||
specialisation.latest.configuration = {
|
||||
services.mattermost.package = lib.mkForce (
|
||||
pkgs.mattermostLatest.override {
|
||||
removeFreeBadge = true;
|
||||
removeUserLimit = true;
|
||||
}
|
||||
);
|
||||
services.mattermost.package = lib.mkForce pkgs.mattermostLatest;
|
||||
system.stateVersion = lib.mkVMOverride (lib.versions.majorMinor lib.version);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,6 +35,11 @@
|
||||
...
|
||||
}:
|
||||
|
||||
assert lib.warnIf (latestVersionInfo != null && (removeUserLimit || removeFreeBadge)) ''
|
||||
The user limit and free badge patches are not tested with this Mattermost version
|
||||
(${latestVersionInfo.version}).
|
||||
'' true;
|
||||
|
||||
let
|
||||
/*
|
||||
Helper function that sets the `withTests` and `withoutTests` passthru correctly,
|
||||
|
||||
Reference in New Issue
Block a user