[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/45: gnu: Add ocaml-duration.
From: |
guix-commits |
Subject: |
11/45: gnu: Add ocaml-duration. |
Date: |
Fri, 17 Feb 2023 10:49:32 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 7d15ed9c825d82ab4841de281d7854f386ee98dd
Author: raingloom <raingloom@riseup.net>
AuthorDate: Wed Feb 15 23:00:00 2023 +0100
gnu: Add ocaml-duration.
* gnu/packages/ocaml.scm (ocaml-duration): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/ocaml.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 892a247883..0093ef0032 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3776,6 +3776,30 @@ mobile platforms. Code can be developed on a normal OS
and then compiled into
a fully-standalone, specialised unikernel.")
(license license:isc)))
+(define-public ocaml-duration
+ (package
+ (name "ocaml-duration")
+ (version "0.2.1")
+ (source (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/hannesm/duration/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0vvxi0ipxmdz1k4h501brvccniwf3wpc32djbccyyrzraiz7qkff"))))
+ (build-system dune-build-system)
+ (native-inputs (list ocaml-alcotest))
+ (home-page "https://github.com/hannesm/duration")
+ (synopsis "Conversions to various time units")
+ (description
+ "This package provides a duration is represented in nanoseconds as an
+unsigned 64 bit integer. This has a range of up to 584 years. Functions
+provided check the input and raise on negative or out of bound input.")
+ (license license:isc)))
+
(define-public ocaml-ocurl
(package
(name "ocaml-ocurl")
- 02/45: gnu: Add ocaml-macaddr., (continued)
- 02/45: gnu: Add ocaml-macaddr., guix-commits, 2023/02/17
- 04/45: gnu: Add ocaml-opam-monorepo., guix-commits, 2023/02/17
- 07/45: gnu: Add ocaml-functoria-runtime, guix-commits, 2023/02/17
- 15/45: gnu: Add ocaml-ppx-cstruct., guix-commits, 2023/02/17
- 18/45: gnu: Add ocaml-mirage-clock., guix-commits, 2023/02/17
- 27/45: gnu: Add ocaml-textutils-kernel., guix-commits, 2023/02/17
- 34/45: gnu: Add ocaml-xenstore., guix-commits, 2023/02/17
- 39/45: gnu: Add ocaml-mirage-bootvar-unix., guix-commits, 2023/02/17
- 03/45: gnu: Add ocaml-ipaddr., guix-commits, 2023/02/17
- 21/45: gnu: Add ocaml-sexp-pretty., guix-commits, 2023/02/17
- 11/45: gnu: Add ocaml-duration.,
guix-commits <=
- 17/45: gnu: Add ocaml-mirage-profile., guix-commits, 2023/02/17
- 22/45: gnu: Add ocaml-expect-test-helpers-core., guix-commits, 2023/02/17
- 24/45: gnu: Add ocaml-core-unix., guix-commits, 2023/02/17
- 31/45: gnu: Add ocaml-async., guix-commits, 2023/02/17
- 05/45: gnu: Add ocaml-pecu., guix-commits, 2023/02/17
- 32/45: gnu: Add ocaml-shared-memory-ring., guix-commits, 2023/02/17
- 14/45: gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages., guix-commits, 2023/02/17
- 28/45: gnu: Add ocaml-textutils., guix-commits, 2023/02/17
- 26/45: gnu: Add ocaml-async-unix., guix-commits, 2023/02/17
- 23/45: gnu: Add ocaml-intrinsics., guix-commits, 2023/02/17