Skip to content

Commit d85af30

Browse files
committed
nix: enable buildbot badges
1 parent 6552835 commit d85af30

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nix/master.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,21 @@ in
183183
ps.treq
184184
ps.psycopg2
185185
(ps.toPythonModule pkgs.buildbot-worker)
186+
pkgs.buildbot-plugins.badges
186187
pkgs.buildbot-plugins.www-react
187188
(pkgs.python3.pkgs.callPackage ../default.nix { })
188189
];
190+
191+
extraConfig = ''
192+
c.setdefault("www", {})
193+
c['www'].setdefault("plugins", {})
194+
# https://docs.buildbot.net/current/manual/configuration/www.html#badges
195+
c['www']['plugins'].setdefault("badges", {})
196+
''''
197+
${builtins.toJSON www_config}
198+
''''
199+
))
200+
'';
189201
};
190202

191203
systemd.services.buildbot-master = {

0 commit comments

Comments
 (0)