GNU bug report logs -
#49079
[PATCH] gnu: Add ocaml-calendar.
Previous Next
Reported by: Xinglu Chen <public <at> yoctocell.xyz>
Date: Thu, 17 Jun 2021 20:56:02 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49079 in the body.
You can then email your comments to 49079 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#49079
; Package
guix-patches
.
(Thu, 17 Jun 2021 20:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Xinglu Chen <public <at> yoctocell.xyz>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 17 Jun 2021 20:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/ocaml.scm (ocaml-calendar): New variable.
---
gnu/packages/ocaml.scm | 47 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index dcfe8ce391..35c6d4e45e 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -20,6 +20,7 @@
;;; Copyright © 2020, 2021 pukkamustard <pukkamustard <at> posteo.net>
;;; Copyright © 2021 aecepoglu <aecepoglu <at> fastmail.fm>
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus <at> gmail.com>
+;;; Copyright © 2021 Xinglu Chen <public <at> yoctocell.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2045,6 +2046,52 @@ manipulate such data.")
spans without being subject to operating system calendar time adjustments.")
(license license:isc)))
+(define-public ocaml-calendar
+ ;; No tags.
+ ;; Commit from 2019-02-03.
+ (let ((commit "a447a88ae3c1e9873e32d2a95d3d3e7c5ed4a7da")
+ (revision "0"))
+ (package
+ (name "ocaml-calendar")
+ ;; Makefile.in says 2.04.
+ (version (git-version "2.04" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ocaml-community/calendar")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "09d9gyqm3zkf3z2m9fx87clqihx6brf8rnzm4yq7c8kf1p572hmc"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:test-target
+ "tests"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'install 'set-environment-variables
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "OCAMLFIND_DESTDIR"
+ (string-append out "/lib/ocaml/site-lib"))
+ (setenv "OCAMLFIND_LDCONF" "ignore")
+ (mkdir-p (string-append
+ out "/lib/ocaml/site-lib/calendar"))))))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)))
+ (propagated-inputs
+ `(("ocaml" ,ocaml)
+ ("ocamlfind" ,ocaml-findlib)))
+ (home-page "https://github.com/ocaml-community/calendar")
+ (synopsis "OCaml library for handling dates and times")
+ (description "This package provides types and operations over
+dates and times.")
+ ;; With linking exception.
+ (license license:lgpl2.1+))))
+
(define-public ocaml-cmdliner
(package
(name "ocaml-cmdliner")
base-commit: d7fe0414fc18b83d7a1c284b4b411def6a115100
--
2.32.0
Reply sent
to
Julien Lepiller <julien <at> lepiller.eu>
:
You have taken responsibility.
(Fri, 18 Jun 2021 22:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Xinglu Chen <public <at> yoctocell.xyz>
:
bug acknowledged by developer.
(Fri, 18 Jun 2021 22:18:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 49079-done <at> debbugs.gnu.org (full text, mbox):
Le Thu, 17 Jun 2021 22:54:52 +0200,
Xinglu Chen <public <at> yoctocell.xyz> a écrit :
> * gnu/packages/ocaml.scm (ocaml-calendar): New variable.
> ---
Pushed as dee608a1bb09e691e32203f2493975d71318c296 to master, thank you!
Note that the package embedded time, so it was not deterministic. Since
it was simple to locate, I added a phase that replaces the date with a
constant string. I also moved "tests" on the same line as #:test-target.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#49079
; Package
guix-patches
.
(Sat, 19 Jun 2021 08:33:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 49079-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sat, Jun 19 2021, Julien Lepiller wrote:
> Le Thu, 17 Jun 2021 22:54:52 +0200,
> Xinglu Chen <public <at> yoctocell.xyz> a écrit :
>
>> * gnu/packages/ocaml.scm (ocaml-calendar): New variable.
>> ---
>
> Pushed as dee608a1bb09e691e32203f2493975d71318c296 to master, thank you!
>
> Note that the package embedded time, so it was not deterministic. Since
> it was simple to locate, I added a phase that replaces the date with a
> constant string. I also moved "tests" on the same line as #:test-target.
Thank you for catching this!
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 17 Jul 2021 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.