build the single-host fixture's nginx config in a check so gixy runs in ci
This commit is contained in:
parent
46693b3c25
commit
ec14977949
1 changed files with 9 additions and 0 deletions
|
|
@ -23,6 +23,15 @@ in
|
||||||
{
|
{
|
||||||
formatting = treefmt-eval.config.build.check self;
|
formatting = treefmt-eval.config.build.check self;
|
||||||
|
|
||||||
|
# The module-eval suite below only evaluates, so nothing else builds
|
||||||
|
# nginx's config file, whose derivation runs gixy over it. Naming the
|
||||||
|
# `ExecStart` that points at it makes this derivation depend on it, so a
|
||||||
|
# directive gixy refuses fails here instead of in a host build. The
|
||||||
|
# single-host swarm fixture serves the swarm UI vhost.
|
||||||
|
nginx-conf-all-local = pkgs.runCommand "nginx-conf-all-local" { } ''
|
||||||
|
echo ${pkgs.lib.escapeShellArg moduleEvalShared.allLocal.systemd.services.nginx.serviceConfig.ExecStart} > $out
|
||||||
|
'';
|
||||||
|
|
||||||
# The only checks here that cover **nix**. Every other one is a Rust
|
# The only checks here that cover **nix**. Every other one is a Rust
|
||||||
# derivation, so a `.nix`-only diff moves no hash and the whole set is
|
# derivation, so a `.nix`-only diff moves no hash and the whole set is
|
||||||
# cache hits — green without evaluating what changed. See
|
# cache hits — green without evaluating what changed. See
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue