gnu: docker: Optimize substitution macros.
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Sun, 14 Apr 2019 02:00:45 +0000 (22:00 -0400)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 6 May 2019 01:21:02 +0000 (21:21 -0400)
commita01d54f3bdc5bd8d11fdc82ac5d14a974f6c5a86
tree2830c09741407782ae89824dc8029e261caff664
parent079f0eb3d22ce087a811e7f1ab0b0a6042edd209
gnu: docker: Optimize substitution macros.

This change halves the time needed to patch the paths.

* gnu/packages/docker.scm (docker)[phases]{patch-paths}: Allow passing
multiple SOURCE-TEXT, PACKAGE and RELATIVE-PATH tuples so that the rewrite
rules can be generated and processed by a single use of the SUBSTITUTE*
macro.  Rename SUBSTITUTE-LOOKPATH to SUBSTITUTE-LOOKPATH* and
substitute-Command to SUBSTITUTE-COMMAND* to denote the change.  Adapt the
uses of SUBSTITUTE-LOOKPATH* and SUBSTITUTE-COMMAND*.
gnu/packages/docker.scm