-
Notifications
You must be signed in to change notification settings - Fork 24
/
hercules-ci.nix
35 lines (31 loc) · 966 Bytes
/
hercules-ci.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ inputs, ... }: {
imports = [
inputs.hci-effects.flakeModule # Adds hercules-ci and herculesCI options
];
hercules-ci.flake-update = {
enable = true;
updateBranch = "updated-flake-lock";
# Next two parameters should always be set explicitly
createPullRequest = true;
autoMergeMethod = null;
when = {
# Perform update by Sundays at 12:45
minute = 45;
hour = 12;
dayOfWeek = "Sun";
};
};
hercules-ci.github-pages.branch = "master";
perSystem = { config, pkgs, ... }: {
hercules-ci.github-pages.settings.contents = pkgs.stdenv.mkDerivation {
name = "plutip-rust-github-pages";
src = config.packages.plutip-rust-rust-doc;
buildPhase = ''
mkdir $out
cp -r -L -v $src/share/doc/* $out/
echo '<meta http-equiv="refresh" content="0; url=plutip_rust">' > $out/index.html
'';
};
};
herculesCI.ciSystems = [ "x86_64-linux" "x86_64-darwin" ];
}