From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 73237@debbugs.gnu.org
Cc: pukkamustard@posteo.net, julien@lepiller.eu
Subject: [bug#73237] [PATCH] gnu: Add coq-ceres.
Date: Fri, 13 Sep 2024 20:55:28 +0000 [thread overview]
Message-ID: <87zfob1dfj.fsf@antr.me> (raw)
* gnu/packages/coq.scm (coq-ceres): New variable.
Change-Id: I366aa3ad38a25bbcbaa70874241a22fb45d41938
---
gnu/packages/coq.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm
index 31d1e8d51d..6417b3ea48 100644
--- a/gnu/packages/coq.scm
+++ b/gnu/packages/coq.scm
@@ -777,3 +777,57 @@ (define-public coq-mathcomp-bigenough
purposes as @code{bigenough} will be subsumed by the near tactics. The
formalization is based on the Mathematical Components library.")
(license license:cecill-b)))
+
+(define-public coq-ceres
+ (package
+ (name "coq-ceres")
+ (version "0.4.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Lysxia/coq-ceres")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "080nldsxmrxdan6gd0dvdgswn3gkwpy5hdqwra6wlmh8zzrs9z7n"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:test-target "test"
+ #:make-flags #~(list "-f" "Makefile.coq"
+ (string-append "COQLIBINSTALL=" #$output
+ "/lib/coq/user-contrib")
+ "NO_TEST=1"
+ "COQTOP=coqtop")
+ #:phases #~(modify-phases %standard-phases
+ ;; Need to generate Makefile.coq
+ (replace 'configure
+ (lambda _
+ (invoke "coq_makefile" "-f" "_CoqProject.classic"
+ "-o" "Makefile.coq")))
+ (add-after 'build 'build-doc
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "html" make-flags)))
+ (replace 'check
+ (lambda* (#:key tests? test-target parallel-build?
+ make-flags #:allow-other-keys)
+ (when tests?
+ (apply invoke "make"
+ "-j" (number->string
+ (if parallel-build?
+ (parallel-job-count)
+ 1))
+ test-target make-flags))))
+ (add-after 'install 'install-doc
+ (lambda _
+ (let ((doc (string-append #$output
+ "/share/doc/ceres")))
+ (mkdir-p doc)
+ (copy-recursively "html" doc)))))))
+ (propagated-inputs (list coq))
+ (home-page "https://gitlab.mpi-sws.org/iris/actris")
+ (synopsis "Coq library for serialization to S-expressions")
+ (description
+ "This package provides a Coq library that allows for serialization and
+deserialization of S-expression data.")
+ (license license:bsd-3)))
base-commit: 0e0d9bc91f20ac6dda439ab09330f0163eb9bf42
--
2.46.0
next reply other threads:[~2024-09-13 20:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 20:55 Antero Mejr via Guix-patches via [this message]
2024-09-16 14:54 ` [bug#73237] [PATCH] gnu: Add coq-ceres Jean-Pierre De Jesus Diaz
2024-09-16 15:14 ` Antero Mejr via Guix-patches via
2024-09-16 15:19 ` Jean-Pierre De Jesus Diaz
2024-09-16 15:30 ` Jean-Pierre De Jesus Diaz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zfob1dfj.fsf@antr.me \
--to=guix-patches@gnu.org \
--cc=73237@debbugs.gnu.org \
--cc=julien@lepiller.eu \
--cc=mail@antr.me \
--cc=pukkamustard@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.