On 18-09-2022 19:43, Fredrik Salomonsson wrote:
Some relevant parts (mostly, it boils down to 'minified js' not counting
as source code, but binaries):
* (guix)Introduction:
[...] Guix makes it easy [...] to build packages from source, [...]
* (guix)Binary Installation
Note: If you do not enable substitutes, Guix will end up
building _everything_ from source on your machine,
* (guix)Features
When a pre-built binary for a ‘/gnu/store’ item is
available from an external source—a “substitute”, Guix just downloads
it and unpacks it; otherwise, it builds the package from source,
* (guix)Additional Build Options
Fetch and return the source of PACKAGE-OR-DERIVATION [...]
* (guix) Snippets versus Phases
Origin snippets are typically used to remove unwanted files such as
bundled libraries, [...]
* (guix)Submitting Patches
8. Make sure the package does not use bundled copies of software
already available as separate packages.
Sometimes, packages include copies of the source code of their
dependencies as a convenience for users. However, as a
distribution, we want to make sure that such packages end up using
the copy we already have in the distribution, if there is one.
This [...], and allows the distribution to make transverse changes
such as applying security updates for a given software package in a
single place and have them affect the whole system—something that
bundled copies prevent.
‘Minified JS that we don't know how to rebuild’ doesn't mesh well with
such 'transverse changes' and "guix build --source will return the
source code".
Greetings,
Maxime.