~ruther/guix-local

00266c58dc4f6f7a87039660353d7f256f69265a — Efraim Flashner 7 months ago 867865b
gnu: ntp: Set location of ntp driftfile.

* ngu/packages/ntp.scm (ntp)[arguments]: Set the location of the
driftfile to the location set in the ntp service.

Change-Id: I33e023fe3ff050dddeb0f7b83f42e78a43454070
1 files changed, 4 insertions(+), 1 deletions(-)

M gnu/packages/ntp.scm
M gnu/packages/ntp.scm => gnu/packages/ntp.scm +4 -1
@@ 204,8 204,11 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.")
                             "scripts/update-leap/update-leap.in")
                (("https://www.ietf.org/timezones/data/leap-seconds.list")
                 "https://data.iana.org/time-zones/data/leap-seconds.list"))))
          (add-after 'install 'wrap-scripts
          (add-after 'install 'adjust-scripts
            (lambda _
              (substitute* (string-append #$output "/bin/calc_tickadj")
                (("/etc/ntp/drift")
                 "/var/run/ntpd/ntp.drift"))
              (wrap-script (string-append #$output "/bin/update-leap")
                `("PERL5LIB" ":" prefix
                  (,(getenv "PERL5LIB")))))))))