[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/45: gnu: Add ocaml-ptime.
From: |
guix-commits |
Subject: |
19/45: gnu: Add ocaml-ptime. |
Date: |
Fri, 17 Feb 2023 10:49:33 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 2af65d1b5d6ea9ca0f536f82a131c52ce90f2eb4
Author: raingloom <raingloom@riseup.net>
AuthorDate: Wed Feb 15 23:00:08 2023 +0100
gnu: Add ocaml-ptime.
* gnu/packages/ocaml.scm (ocaml-ptime): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/ocaml.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3c77cbfa9b..1f41af848a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3849,6 +3849,36 @@ since an arbitrary point, and @code{PCLOCK} which counts
time since the Unix
epoch.")
(license license:isc)))
+(define-public ocaml-ptime
+ (package
+ (name "ocaml-ptime")
+ ;; TODO 1.1.0 has some issues, so for now we are stuck with 0.8.5
+ (version "0.8.5")
+ (source (origin
+ (method url-fetch)
+ (uri
+ "https://erratique.ch/software/ptime/releases/ptime-0.8.5.tbz")
+ (sha256
+ (base32
+ "1fxq57xy1ajzfdnvv5zfm7ap2nf49znw5f9gbi4kb9vds942ij27"))))
+ (build-system ocaml-build-system)
+ (arguments
+ `(#:build-flags (list "build" "--with-js_of_ocaml" "true" "--tests"
+ "true")
+ #:phases (modify-phases %standard-phases
+ (delete 'configure))))
+ (propagated-inputs (list ocaml-result js-of-ocaml))
+ (native-inputs (list ocaml-findlib ocamlbuild ocaml-topkg opam))
+ (home-page "https://erratique.ch/software/ptime")
+ (synopsis "POSIX time for OCaml")
+ (description
+ "Ptime offers platform independent POSIX time support in pure OCaml. It
+provides a type to represent a well-defined range of POSIX timestamps with
+picosecond precision, conversion with date-time values, conversion with RFC
+3339 timestamps and pretty printing to a human-readable, locale-independent
+representation.")
+ (license license:isc)))
+
(define-public ocaml-mirage-unix
(package
(name "ocaml-mirage-unix")
- 06/45: gnu: Add ocaml-emile., (continued)
- 06/45: gnu: Add ocaml-emile., guix-commits, 2023/02/17
- 09/45: gnu: Add ocaml-functoria., guix-commits, 2023/02/17
- 42/45: gnu: Add chathistorysync., guix-commits, 2023/02/17
- 45/45: gnu: Add clipman., guix-commits, 2023/02/17
- 01/45: gnu: Add ocaml-domain-name., guix-commits, 2023/02/17
- 25/45: gnu: Add ocaml-async-kernel., guix-commits, 2023/02/17
- 36/45: gnu: Add ocaml-bheap., guix-commits, 2023/02/17
- 37/45: gnu: Add ocaml-mirage-xen., guix-commits, 2023/02/17
- 40/45: gnu: p11-kit-next: Switch to meson-build-system., guix-commits, 2023/02/17
- 13/45: gnu: Add ocaml-mirage-time., guix-commits, 2023/02/17
- 19/45: gnu: Add ocaml-ptime.,
guix-commits <=
- 20/45: gnu: Add ocaml-mirage-logs., guix-commits, 2023/02/17
- 12/45: gnu: Add ocaml-mirage-unix., guix-commits, 2023/02/17
- 30/45: gnu: Add ocaml-async-rpc-kernel., guix-commits, 2023/02/17
- 29/45: gnu: Add ocaml-protocol-version-header., guix-commits, 2023/02/17
- 35/45: gnu: Add ocaml-io-page., guix-commits, 2023/02/17
- 41/45: gnu: Add go-gopkg-in-irc-v3., guix-commits, 2023/02/17
- 44/45: gnu: Add docker-registry., guix-commits, 2023/02/17