mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: elogind: Fix cross-compilation.
%build-inputs and friends don't exist when cross-compiling, so use some G-expology instead. * gnu/packages/freedesktop.scm (elogind)[arguments]<#:configure-flags>: Don't use '%outputs' or '%build-inputs' when cross-compiling.
This commit is contained in:
parent
ea91371466
commit
04380925ea
1 changed files with 11 additions and 3 deletions
|
@ -583,12 +583,20 @@ (define-public elogind
|
|||
(build-system meson-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags
|
||||
,#~(let* ((out (assoc-ref %outputs "out"))
|
||||
;; TODO(core-updates): Use #$output unconditionally.
|
||||
,#~(let* ((out #$(if (%current-target-system)
|
||||
#~#$output
|
||||
#~(assoc-ref %outputs "out")))
|
||||
(sysconf (string-append out "/etc"))
|
||||
(libexec (string-append out "/libexec/elogind"))
|
||||
(dbuspolicy (string-append out "/etc/dbus-1/system.d"))
|
||||
(shadow (assoc-ref %build-inputs "shadow"))
|
||||
(shepherd (assoc-ref %build-inputs "shepherd"))
|
||||
;; TODO(core-updates): use this-package-input unconditionally.
|
||||
(shadow #$(if (%current-target-system)
|
||||
(this-package-input "shadow")
|
||||
#~(assoc-ref %build-inputs "shadow")))
|
||||
(shepherd #$(if (%current-target-system)
|
||||
(this-package-input "shepherd")
|
||||
#~(assoc-ref %build-inputs "shepherd")))
|
||||
(halt-path (string-append shepherd "/sbin/halt"))
|
||||
(kexec-path "") ;not available in Guix yet
|
||||
(nologin-path (string-append shadow "/sbin/nologin"))
|
||||
|
|
Loading…
Reference in a new issue