mattermost: fix override format

This commit is contained in:
Florian Agbuya 2025-01-15 10:22:16 +08:00
parent e2c78a5064
commit a572fe236c

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 ];