Cuirass is a continuous integration tool for Guix. It can be used both for development and for providing substitutes to others (see Substitutes).
(gnu services cuirass) module provides the following service.
The type of the Cuirass service. Its value must be a
cuirass-configuration object, as described below.
To add build jobs, you have to set the
specifications field of the
configuration. Here is an example of a service that polls the Guix repository
and builds the packages from a manifest. Some of the packages are defined in
"custom-packages" input, which is the equivalent of
(define %cuirass-specs #~(list '((#:name . "my-manifest") (#:load-path-inputs . ("guix")) (#:package-path-inputs . ("custom-packages")) (#:proc-input . "guix") (#:proc-file . "build-aux/cuirass/gnu-system.scm") (#:proc . cuirass-jobs) (#:proc-args . ((subset . "manifests") (systems . ("x86_64-linux")) (manifests . (("config" . "guix/manifest.scm"))))) (#:inputs . (((#:name . "guix") (#:url . "git://git.savannah.gnu.org/guix.git") (#:load-path . ".") (#:branch . "master") (#:no-compile? . #t)) ((#:name . "config") (#:url . "https://git.example.org/config.git") (#:load-path . ".") (#:branch . "master") (#:no-compile? . #t)) ((#:name . "custom-packages") (#:url . "https://git.example.org/custom-packages.git") (#:load-path . ".") (#:branch . "master") (#:no-compile? . #t))))))) (service cuirass-service-type (cuirass-configuration (specifications %cuirass-specs)))
While information related to build jobs is located directly in the
specifications, global settings for the
cuirass process are
accessible in other
Data type representing the configuration of Cuirass.
Location of the log file.
Location of the log file used by the web interface.
Location of the repository cache.
Owner of the
Owner’s group of the
Number of seconds between the poll of the repositories followed by the Cuirass jobs.
Location of sqlite database which contains the build results and previously added specifications.
(* 30 24 3600))
Specifies the time-to-live (TTL) in seconds of garbage collector roots that are registered for build results. This means that build results are protected from garbage collection for at least ttl seconds.
Port number used by the HTTP server.
Listen on the network interface for host. The default is to accept connections from localhost.
A gexp (see G-Expressions) that evaluates to a list of specifications,
where a specification is an association list
(see Associations Lists in GNU Guile Reference Manual) whose
keys are keywords (
#:keyword-example) as shown in the example
This allows using substitutes to avoid building every dependencies of a job from source.
Only evaluate specifications and build derivations once.
When substituting a pre-built binary fails, fall back to building packages locally.
Extra options to pass when running the Cuirass processes.
The Cuirass package to use.