--without-tests=package-name
)#:PACKAGE-NAME
and #:PARAMETER-VALUE
may be used for thesecdr
Morphisms to compile a package without tests and with the master branch
(parameter/morphism #:transform (without-tests . #:PACKAGE-NAME)
(with-branch . #:PACKAGE-NAME "=master"))
Morphisms to compile a package with a GCC optimization level specified by an enumerated parameter
(parameter/morphism #:transform (with-configure-flag . "-O" #:PARAMETER-VALUE))
Note that capitalization of the keywords is purely for the purpose of emphasis.
Another interesting thing to note is that #:parameter-value
does not need any arguments.
This is because morphism-match
assigns morphisms parameter-wise, and we can pull the value from that.
For example if we had a local branch
morphism with values old
, master
and stable
,
(parameter/morphism #:transform (with-branch . #:PACKAGE-NAME "=" #:PARAMETER-VALUE))
Will give us the precise value at the branch.