gnu: chrony: Use G-expressions.
* gnu/packages/ntp.scm (chrony)[arguments]: Rewrite as G-expressions.master
parent
1b60c48c27
commit
8b40e1ea15
|
@ -57,15 +57,17 @@
|
||||||
(base32 "123h2a9rpc6wbvnysvhl5pmckvynzrnqay7l00i18azrvbk0gyza"))))
|
(base32 "123h2a9rpc6wbvnysvhl5pmckvynzrnqay7l00i18azrvbk0gyza"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((srfi srfi-26)
|
(list
|
||||||
|
#:modules
|
||||||
|
'((srfi srfi-26)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(guix build gnu-build-system))
|
(guix build gnu-build-system))
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
(list "--enable-scfilter"
|
#~(list "--enable-scfilter"
|
||||||
"--with-sendmail=sendmail"
|
"--with-sendmail=sendmail"
|
||||||
"--with-user=chrony")
|
"--with-user=chrony")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'stay-inside-out
|
(add-after 'unpack 'stay-inside-out
|
||||||
;; Simply setting CHRONYVARDIR to something nonsensical at install
|
;; Simply setting CHRONYVARDIR to something nonsensical at install
|
||||||
;; time would result in nonsense file names in man pages.
|
;; time would result in nonsense file names in man pages.
|
||||||
|
@ -73,12 +75,13 @@
|
||||||
(substitute* "Makefile.in"
|
(substitute* "Makefile.in"
|
||||||
(("mkdir -p \\$\\(DESTDIR\\)\\$\\(CHRONYVARDIR\\)") ":"))))
|
(("mkdir -p \\$\\(DESTDIR\\)\\$\\(CHRONYVARDIR\\)") ":"))))
|
||||||
(add-after 'install 'install-more-documentation
|
(add-after 'install 'install-more-documentation
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((doc (string-append #$output "/share/doc/"
|
||||||
(doc (string-append out "/share/doc/" ,name "-" ,version)))
|
#$name "-" #$version)))
|
||||||
(for-each (cut install-file <> doc)
|
(for-each (cut install-file <> doc)
|
||||||
(list "README" "FAQ"))
|
(list "README" "FAQ"))
|
||||||
(copy-recursively "examples" (string-append doc "/examples"))))))))
|
(copy-recursively "examples"
|
||||||
|
(string-append doc "/examples"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Reference in New Issue