packages: 'package-mapping' correctly recurses into 'replacement'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 23 Sep 2020 12:40:15 +0000 (14:40 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 27 Sep 2020 19:41:11 +0000 (21:41 +0200)
commitb3fc03ee266a5f6d810d780582d458e561efccf3
tree3a20f6e366f8fa57bed944d267ef66b44c50e3d2
parent2bf6f962b91123b0474c0f7123cd17efe7f09a66
packages: 'package-mapping' correctly recurses into 'replacement'.

Previously, something like:

  guix build glib --with-graft=glibc=glibc@2.29

would produce a result showing that rewriting rules were not applied to
libx11@1.6.A (a replacement).

* guix/packages.scm (package-mapping): Call REPLACE instead of PROC to
'replacement'.
* tests/packages.scm ("package-input-rewriting/spec, graft"): New test.
guix/packages.scm
tests/packages.scm