gnu: arm-none-eabi-toolchain: Provide union of all inputs at the output.

* gnu/packages/embedded.scm (arm-none-eabi-toolchain)[arguments]: Make the
union of all inputs available at the output.
This commit is contained in:
Ricardo Wurmus 2017-05-22 16:13:18 +02:00
parent 1a1e83366d
commit 9cdf48728e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -237,7 +237,16 @@ (define (arm-none-eabi-toolchain xgcc newlib)
(version (package-version xgcc))
(source #f)
(build-system trivial-build-system)
(arguments '(#:builder (mkdir %output)))
(arguments
'(#:modules ((guix build union))
#:builder
(begin
(use-modules (ice-9 match)
(guix build union))
(match %build-inputs
(((names . directories) ...)
(union-build (assoc-ref %outputs "out")
directories))))))
(propagated-inputs
`(("binutils" ,(cross-binutils "arm-none-eabi"))
("gcc" ,xgcc)