mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05: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.
(cherry picked from commit eb435dcd1f)
This commit is contained in:
parent
2759ab2a00
commit
a2461c700f
2 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue