~ruther/guix-local

dc34393569aa4e5db4e4da8d8be8e827d2e94ab3 — Ludovic Courtès 11 years ago ae5c6fc
gnu: isc-dhcp: In native builds, refer to the final Coreutils and sed.

* gnu/packages/admin.scm (isc-dhcp)[inputs]: Add Coreutils and sed only
  when (%current-target-system) is true.
1 files changed, 9 insertions(+), 5 deletions(-)

M gnu/packages/admin.scm
M gnu/packages/admin.scm => gnu/packages/admin.scm +9 -5
@@ 437,11 437,15 @@ connection alive.")

    (native-inputs `(("perl" ,perl)))

    ;; Even Coreutils and sed are needed here in case we're cross-compiling.
    (inputs `(("coreutils" ,coreutils)
              ("sed" ,sed)
              ("net-tools" ,net-tools)
              ("iproute" ,iproute)))
    (inputs `(("net-tools" ,net-tools)
              ("iproute" ,iproute)

              ;; When cross-compiling, we need the cross Coreutils and sed.
              ;; Otherwise just use those from %FINAL-INPUTS.
              ,@(if (%current-target-system)
                    `(("coreutils" ,coreutils)
                      ("sed" ,sed))
                    '())))

    (home-page "http://www.isc.org/products/DHCP/")
    (synopsis "Dynamic Host Configuration Protocol (DHCP) tools")