mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: shepherd: Support cross-compilation.
Reported by phodina <phodina@protonmail.com>. * gnu/packages/admin.scm (shepherd-0.9)[arguments]: New field. [native-inputs]: Add GUILE-FIBERS-1.1.
This commit is contained in:
parent
35a1de1a4c
commit
6e174c4edd
1 changed files with 21 additions and 1 deletions
|
@ -322,7 +322,27 @@ (define-public shepherd-0.9
|
|||
(sha256
|
||||
(base32
|
||||
"1rdwhrcibs2ly4hjwwb5kmzb133ccjmrfvb0a70cqkv9jy1pg061"))))
|
||||
(native-inputs (list pkg-config guile-3.0))
|
||||
(arguments
|
||||
(list #:configure-flags #~'("--localstatedir=/var")
|
||||
#:make-flags #~'("GUILE_AUTO_COMPILE=0")
|
||||
#:phases (if (%current-target-system)
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'configure 'set-fibers-directory
|
||||
(lambda _
|
||||
;; When cross-compiling, refer to the target
|
||||
;; Fibers, not the native one.
|
||||
(substitute* '("herd.in" "shepherd.in")
|
||||
(("%FIBERS_SOURCE_DIRECTORY%")
|
||||
#$(file-append
|
||||
(this-package-input "guile-fibers")
|
||||
"/share/guile/site/3.0"))
|
||||
(("%FIBERS_OBJECT_DIRECTORY%")
|
||||
#$(file-append
|
||||
(this-package-input "guile-fibers")
|
||||
"/lib/guile/3.0/site-ccache"))))))
|
||||
#~%standard-phases)))
|
||||
(native-inputs (list pkg-config guile-3.0
|
||||
guile-fibers-1.1)) ;for cross-compilation
|
||||
(inputs (list guile-3.0 guile-fibers-1.1))))
|
||||
|
||||
(define-public guile2.2-shepherd
|
||||
|
|
Loading…
Reference in a new issue