[PATCH] gnu: Add ntp

2014-10-18 Thread John Darrington
* gnu/packages/ntp.scm: New file. * gnu-system.am (gnu/packages/ntp.scm): Add it. --- gnu-system.am|1 + gnu/packages/ntp.scm | 47 +++ 2 files changed, 48 insertions(+) create mode 100644 gnu/packages/ntp.scm diff --git a/gnu-system.am b

Re: [PATCH] gnu: Add ntp

2014-10-18 Thread Mark H Weaver
John Darrington writes: > +(define-public ntp > + (package > + (name "ntp") > + (version "4.2.6p5") > + (source (origin > + (method url-fetch) > + (uri (string-append > "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-"; > +(string-take ve

Re: [PATCH] gnu: Add ntp

2014-10-18 Thread Ian Denhardt
Quoting Mark H Weaver (2014-10-18 12:24:56) > (string-join (take (string-split version #\.) 2) >".") > I suppose we should add a procedure specifically for this, but > it can wait, and it should be in a separate commit anyway. I'm going to grab this and try to have a patch sub

Re: [PATCH] gnu: Add ntp

2014-10-18 Thread Mark H Weaver
Ian Denhardt writes: > Quoting Mark H Weaver (2014-10-18 12:24:56) >> (string-join (take (string-split version #\.) 2) >>".") > > > >> I suppose we should add a procedure specifically for this, but >> it can wait, and it should be in a separate commit anyway. > > I'm going to g

[PATCH 0/1] *** SUBJECT HERE ***

2014-10-18 Thread Ian Denhardt
Prompted by Mark Weaver's feedback on the ntp package patch earlier today, I refactored the pattern: (string-join (take (string-split version #\.) 2) ".") Into a common procedure: (version-take-api version) ..and modified the existing package recepies accordingly. Ian

[PATCH 1/1] Factor out a common pattern into a procedure.

2014-10-18 Thread Ian Denhardt
The procedure version-take-api extracts the "major.minor" part of version strings; previously this was handled by an expression common to several packages. * guix/utils.scm (version-take-api): New procedure * gnu/packages/backup.scm (duplicity): Use version-take-api. * gnu/packages/cmake.scm (cmak

Re: [PATCH 0/1] *** SUBJECT HERE ***

2014-10-18 Thread Ian Denhardt
Quoting Ian Denhardt (2014-10-18 22:18:00) > ... Ack, sorry for the goof on the subject. signature.asc Description: signature