diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2025-09-10 10:50:11 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2025-09-10 11:04:47 +0300 |
| commit | e28bf7c6f6773b809219d4322f13269f7829f855 (patch) | |
| tree | 406c52741c3f8072cbab02d22fc9f088f7456251 | |
| parent | 00266c58dc4f6f7a87039660353d7f256f69265a (diff) | |
gnu: ntp: Find the location of installed binaries.
* gnu/packages/ntp.scm (ntp)[arguments]: Add a phase to set the full
path of the installed binaries.
Change-Id: I70d8a67c451ee01cce9afbc0bcd783b72dbc78be
| -rw-r--r-- | gnu/packages/ntp.scm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index d67fe7a4a34..79e97992a79 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -204,6 +204,16 @@ 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 'unpack 'use-absolute-path-in-files + (lambda _ + (substitute* "scripts/lib/NTP/Util.pm" + (("(ntpq_path = ')ntpq(';)" _ first last) + (string-append first #$output "/bin/ntpq" last)) + (("(sntp_path = ')sntp(';)" _ first last) + (string-append first #$output "/bin/sntp" last))) + (substitute* "scripts/calc_tickadj/calc_tickadj.in" + (("`tickadj`") + (string-append "`" #$output "/bin/tickadj`"))))) (add-after 'install 'adjust-scripts (lambda _ (substitute* (string-append #$output "/bin/calc_tickadj") |
