mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: chrony: Use G-expressions.
* gnu/packages/ntp.scm (chrony)[arguments]: Rewrite as G-expressions.
This commit is contained in:
parent
1b60c48c27
commit
8b40e1ea15
1 changed files with 25 additions and 22 deletions
|
@ -57,28 +57,31 @@ (define-public chrony
|
|||
(base32 "123h2a9rpc6wbvnysvhl5pmckvynzrnqay7l00i18azrvbk0gyza"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:modules ((srfi srfi-26)
|
||||
(guix build utils)
|
||||
(guix build gnu-build-system))
|
||||
#:configure-flags
|
||||
(list "--enable-scfilter"
|
||||
"--with-sendmail=sendmail"
|
||||
"--with-user=chrony")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'stay-inside-out
|
||||
;; Simply setting CHRONYVARDIR to something nonsensical at install
|
||||
;; time would result in nonsense file names in man pages.
|
||||
(lambda _
|
||||
(substitute* "Makefile.in"
|
||||
(("mkdir -p \\$\\(DESTDIR\\)\\$\\(CHRONYVARDIR\\)") ":"))))
|
||||
(add-after 'install 'install-more-documentation
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
||||
(for-each (cut install-file <> doc)
|
||||
(list "README" "FAQ"))
|
||||
(copy-recursively "examples" (string-append doc "/examples"))))))))
|
||||
(list
|
||||
#:modules
|
||||
'((srfi srfi-26)
|
||||
(guix build utils)
|
||||
(guix build gnu-build-system))
|
||||
#:configure-flags
|
||||
#~(list "--enable-scfilter"
|
||||
"--with-sendmail=sendmail"
|
||||
"--with-user=chrony")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'stay-inside-out
|
||||
;; Simply setting CHRONYVARDIR to something nonsensical at install
|
||||
;; time would result in nonsense file names in man pages.
|
||||
(lambda _
|
||||
(substitute* "Makefile.in"
|
||||
(("mkdir -p \\$\\(DESTDIR\\)\\$\\(CHRONYVARDIR\\)") ":"))))
|
||||
(add-after 'install 'install-more-documentation
|
||||
(lambda _
|
||||
(let* ((doc (string-append #$output "/share/doc/"
|
||||
#$name "-" #$version)))
|
||||
(for-each (cut install-file <> doc)
|
||||
(list "README" "FAQ"))
|
||||
(copy-recursively "examples"
|
||||
(string-append doc "/examples"))))))))
|
||||
(native-inputs
|
||||
(list pkg-config))
|
||||
(inputs
|
||||
|
|
Loading…
Reference in a new issue