On 5/14/24 12:24, pelzflorian (Florian Pelz) wrote:
Hello Vasilii. In addition to Hartmut’s recommendation to imitate,
there also is a manual section; run
info "(guix)Source Tree Structure"
or visit
https://guix.gnu.org/manual/devel/en/html_node/Source-Tree-Structure.html
explaining what guix/build/…-build-system are:
(guix build gnu-build-system)
(guix build cmake-build-system)
(guix build pyproject-build-system)
Implementation of build systems, and in particular definition of their build
phases (see Build Phases).
Regards,
Florian
Oh, nice, I completely missed that page. Thanks! Although it would be
nice if it went into more detail... Like, I see that both "build" and
"build-system" parts define the "${name}-build" function (e.g.
cmake-build). But the definitions are different.
The way I interpret these docs is that everything in the "build" part is
solely for use from inside of gexps? And the "build-system" part is for
use by the host code, that embeds these gexps. That would explain
duplicate function names then...