- blue/types.scm (common-ancestor): New procedure.
(shadow-fields): New procedure.
Example:
(map buildable-inputs-relative-to
(buildable-requirements
(run-with-states '((srcdir "/tmp")
(builddir "/tmp/build"))
(shadow-fields (copy-file
(requirements (list (copy-file)))
(inputs-relative-to "pipo"))
'(inputs-relative-to)))))
Notice how the nested copy-file object has it's inputs-relative-to field
shadowed by the parent.
Fixes: #278
* blue/types.scm (common-ancestor): New procedure.
(shadow-fields): New procedure.
Example:
```scheme
(map buildable-inputs-relative-to
(buildable-requirements
(run-with-states '((srcdir "/tmp")
(builddir "/tmp/build"))
(shadow-fields (copy-file
(requirements (list (copy-file)))
(inputs-relative-to "pipo"))
'(inputs-relative-to)))))
```
Notice how the nested `copy-file` object has it's `inputs-relative-to` field
shadowed by the parent.
Fixes: #278