[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49867] [PATCH v2 18/31] gnu: Add ocaml-ptime.
From: |
pukkamustard |
Subject: |
[bug#49867] [PATCH v2 18/31] gnu: Add ocaml-ptime. |
Date: |
Mon, 9 Aug 2021 07:01:11 +0000 |
* gnu/packages/ocaml.scm (ocaml-ptime): New variable.
---
gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 82786922b2..7af276a517 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7719,6 +7719,45 @@ number generator interface, and implementations.")))
(description "@code{ocaml-mirage-crypto-pk} provides public-key
cryptography (RSA, DSA, DH) for OCaml.")))
+(define-public ocaml-ptime
+ (package
+ (name "ocaml-ptime")
+ (version "0.8.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://erratique.ch/software/ptime/releases/ptime-"
+ version ".tbz"))
+ (sha256
+ (base32
+ "1fxq57xy1ajzfdnvv5zfm7ap2nf49znw5f9gbi4kb9vds942ij27"))))
+ (build-system ocaml-build-system)
+ (arguments
+ `(#:build-flags (list "build" "--with-js_of_ocaml" "false"
+ "--tests" "true")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (propagated-inputs
+ `(("ocaml-result" ,ocaml-result)))
+ (native-inputs
+ `(("ocamlbuild" ,ocamlbuild)
+ ("ocaml-topkg" ,ocaml-topkg)
+ ("opam" ,opam)))
+ (properties `((upstream-name . "ptime")))
+ (home-page "https://erratique.ch/software/ptime")
+ (synopsis "POSIX time for OCaml")
+ (description "Ptime has 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.
+
+The additional Ptime_clock library provides access to a system POSIX clock and
+to the system's current time zone offset.")
+ (license license:isc)))
+
(define-public js-of-ocaml
(package
(name "js-of-ocaml")
--
2.32.0
- [bug#49867] [PATCH v2 13/31] gnu: Add ocaml-mirage-crypto., (continued)
- [bug#49867] [PATCH v2 07/31] gnu: Add ocaml-conduit., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 08/31] gnu: Add ocaml-conduit-lwt., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 14/31] gnu: Add ocaml-duration., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 09/31] gnu: Add ocaml-afl-persistent., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 17/31] gnu: Add ocaml-mirage-crypto-pk., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 12/31] gnu: Add ocaml-eqaf., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 10/31] gnu: Add ocaml-pprint., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 18/31] gnu: Add ocaml-ptime.,
pukkamustard <=
- [bug#49867] [PATCH v2 15/31] gnu: Add ocaml-randomconv., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., Xinglu Chen, 2021/08/09
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., Julien Lepiller, 2021/08/09
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., Xinglu Chen, 2021/08/09
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., pukkamustard, 2021/08/10
- [bug#49867] [PATCH v2 11/31] gnu: Add ocaml-crowbar., Xinglu Chen, 2021/08/10
- [bug#49867] [PATCH v2 16/31] gnu: Add ocaml-mirage-crypto-rng., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 22/31] gnu: Add ocaml-mirage-crypto-ec., pukkamustard, 2021/08/09
- [bug#49867] [PATCH v2 19/31] gnu: Add ocaml-asn1-combinators., pukkamustard, 2021/08/09