derivations: Import modules with 'add-file-tree-to-store'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 30 Jan 2020 00:20:49 +0000 (01:20 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 30 Jan 2020 00:34:51 +0000 (01:34 +0100)
commit46312064de8ae0cca531fddbc4b5ec8421e5d866
tree336aefb620cfa41eb9db0b81574e84c2aa5092e6
parent68dbd5c9de78ad803cc33973db40d22e29c532ec
derivations: Import modules with 'add-file-tree-to-store'.

This reduces the number of RPCs on "guix build libreoffice -nd" from
2,589 to 2,558 (1%).

* guix/derivations.scm (imported-files): Rewrite to call to
'add-file-tree-to-store'.  Remove #:system and #:guile parameters.
(%imported-modules): Adjust docstring to say that result is a store
item, and adjust 'imported-files' call.
(%compiled-modules): Adjust accordingly.
(imported+compiled-modules): Likewise.
(build-expression->derivation): Likewise.
guix/derivations.scm