build: haskell-build-system: Support multiple libraries.
authorPhilip Munksgaard <philip@munksgaard.me>
Wed, 6 Apr 2022 19:19:08 +0000 (21:19 +0200)
committerLars-Dominik Braun <lars@6xq.net>
Sun, 26 Feb 2023 09:19:35 +0000 (10:19 +0100)
commit3455a004ec78a8c8a579b74da8039fbcd36cea73
tree1560d145d18646e95e895cc18771b7865f199d70
parent29d5fb76193b787c4f825af513effb7793301f0c
build: haskell-build-system: Support multiple libraries.

Fixes <https://bugs.gnu.org/53655>.

The patch handles correctly the multiple registration of some package using
their own internal sub-libraries.  It allows to call 'install-transitive-deps'
multiple times and deals with packages requiring a multiple registration.

* guix/build/haskell-build-system.scm (register)[install-transitive-deps]:
Guard also the destination direction.
[install-config-file]: New procedure.

Co-Authored-by: zimoun <zimon.toutoune@gmail.com>.
Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
guix/build/haskell-build-system.scm