Am Donnerstag, 31. Januar 2013 schrieb Nikita Karetnikov:
> This patch works, but I'd like to simplify it a bit. Is it possible?
There is no need to repeat the phases that do not change in your patch. If you have a look at icu4c.scm, there is an example using "alist-replace" for the configure phase that changes; moreover, it just patches a file first and then calls the normal configure of %standard-phases:
(alist-replace
'configure
(lambda* (#:key #:allow-other-keys #:rest args)
(let ((configure (assoc-ref %standard-phases 'configure)))
(substitute* "configure"
(("`/bin/sh")
(string-append "`" (which "bash"))))
(apply configure args)))
%standard-phases))
Andreas