~ruther/guix-local

934488ccd38437f23a5c2c36d4633d2cfc0740cc — Ludovic Courtès 12 years ago 82c865c
gnu: linux-libre-headers: Allow cross-compilation.

* gnu/packages/linux.scm (linux-libre-headers): Use (guix build
  gnu-cross-build) and %standard-cross-phases when cross-compiling.
1 files changed, 8 insertions(+), 2 deletions(-)

M gnu/packages/linux.scm
M gnu/packages/linux.scm => gnu/packages/linux.scm +8 -2
@@ 78,12 78,18 @@
    (arguments
     `(#:modules ((guix build gnu-build-system)
                  (guix build utils)
                  (srfi srfi-1))
                  (srfi srfi-1)
                  ,@(if (%current-target-system)
                        '((guix build gnu-cross-build))
                        '()))
       #:phases (alist-replace
                 'build ,(build-phase (%current-system))
                 (alist-replace
                  'install ,install-phase
                  (alist-delete 'configure %standard-phases)))
                  (alist-delete 'configure
                                ,(if (%current-target-system)
                                     '%standard-cross-phases
                                     '%standard-phases))))
       #:tests? #f))
    (synopsis "GNU Linux-Libre kernel headers")
    (description "Headers of the Linux-Libre kernel.")