* gnu/packages/ocaml.scm (ocaml-mtime): New variable.
---
gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index fea3ebda0..e971e72d0 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1099,3 +1099,28 @@ declarative manner, without resorting to exceptions. It
defines combinators
to operate on the result type available from OCaml 4.03 in the standard
library.")
(license license:isc)))
+
+(define-public ocaml-mtime
+ (package
+ (name "ocaml-mtime")
+ (version "0.8.3")
+ (home-page "http://erratique.ch/software/mtime")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append home-page "/releases/mtime-" version ".tbz"))
+ (sha256
+ (base32
+ "1hfx4ny2dkw6jf3jppz0640dafl5xgn8r2si9kpwzhmibal8qrah"))))
+ (build-system ocaml-build-system)
+ (arguments `(#:tests? #f
+ #:build-flags (list "native=true" "native-dynlink=true"
+ "jsoo=false")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (native-inputs `(("opam" ,opam)))
+ (propagated-inputs `(("topkg" ,ocaml-topkg)))
+ (synopsis "Monotonic wall-clock time for OCaml")
+ (description "access monotonic wall-clock time. It allows to measure time
+spans without being subject to operating system calendar time adjustments.")
+ (license license:isc)))
--
2.11.0