derivations: 'graft-derivation' correctly handles multiple-output sources.

* guix/derivations.scm (graft-derivation): Add DRV as input for each one
  of OUTPUT-NAMES.
This commit is contained in:
Ludovic Courtès 2014-10-15 23:55:36 +02:00
parent 8dcec91426
commit e5997888fa

View file

@ -1040,7 +1040,9 @@ (define add-label
#:guile-for-build guile
#:modules '((guix build graft)
(guix build utils))
#:inputs `(("original" ,drv)
#:inputs `(,@(map (lambda (out)
`("x" ,drv ,out))
output-names)
,@(append (map add-label sources)
(map add-label targets)))
#:outputs output-names