mattermost: fix override format #57

Merged
sb10q merged 1 commits from fsagbuya/it-infra:webapp_format into master 2025-01-15 10:24:53 +08:00

View File

@ -957,15 +957,10 @@ in
hydraPath = oa.hydraPath + ":" + super.lib.makeBinPath [ super.jq ];
doCheck = false; # FIXME: ldap tests fail on hydra rebuild, seems unrelated to patches above.
});
mattermost = let
webapp-new = self.mattermost.webapp.overrideAttrs(oa: {
patches = oa.patches or [ ] ++ [ ./mattermost-remove-free-banner.patch ];
});
in super.mattermost.overrideAttrs(oa: {
postInstall = builtins.replaceStrings
[ self.mattermost.webapp.outPath ]
[ "${webapp-new}" ]
oa.postInstall;
mattermost = super.mattermost.overrideAttrs(oldAttrs: {
webapp = oldAttrs.webapp.overrideAttrs (webappAttrs: {
patches = webappAttrs.patches or [ ] ++ [ ./mattermost-remove-free-banner.patch ];
});
});
matterbridge = super.matterbridge.overrideAttrs(oa: {
patches = oa.patches or [] ++ [ ./matterbridge-disable-github.patch ];