From: Dan Frumin <dfrumin@cs.ru.nl>
To: 34466@debbugs.gnu.org
Cc: Dan Frumin <dfrumin@cs.ru.nl>
Subject: [bug#34466] [PATCH] gnu: Add coq-equations.
Date: Wed, 13 Feb 2019 11:40:24 +0100 [thread overview]
Message-ID: <20190213104024.1963-1-dfrumin@cs.ru.nl> (raw)
---
gnu/packages/coq.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm
index fa02f85cd..494c3404b 100644
--- a/gnu/packages/coq.scm
+++ b/gnu/packages/coq.scm
@@ -500,3 +500,43 @@ work on a decision procedure for the equational theory of an extension of the
sigma-calculus by Abadi et al. The library is completely written in Coq and
uses Ltac to synthesize the substitution operation.")
(license license:bsd-3))))
+
+(define-public coq-equations
+ (package
+ (name "coq-equations")
+ (synopsis "Equations - a function definition plugin")
+ (version "1.2-beta")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/mattam82/Coq-Equations/archive/v"
+ version "-8.8.tar.gz"))
+ (file-name (string-append name "-v" version "8.8.tar.gz"))
+ (sha256
+ (base32 "1j7yarhddk2c2l4b6h8g5n0xz5vfy1bqmgh832g01di5gjwshy3f"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("findlib" ,ocaml)
+ ("coq" ,coq)
+ ("camlp5" ,camlp5)))
+ (arguments
+ `(#:test-target "test-suite"
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "coq_makefile" "-f" "_CoqProject" "-o" "Makefile")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "COQLIB" (string-append (assoc-ref outputs "out") "/lib/coq/"))
+ (invoke "make"
+ (string-append "COQLIB=" (assoc-ref outputs "out")
+ "/lib/coq/")
+ "install"))))))
+ (description "Equations provides a notation for writing programs
+by dependent pattern-matching and (well-founded) recursion in Coq. It
+compiles everything down to eliminators for inductive types, equality
+and accessibility, providing a definitional extension to the Coq
+kernel.")
+ (home-page "https://mattam82.github.io/Coq-Equations/")
+ (license license:lgpl2.1)))
--
2.17.1
next reply other threads:[~2019-02-13 10:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 10:40 Dan Frumin [this message]
2019-02-13 11:04 ` [bug#34466] [PATCH] gnu: Add coq-equations Julien Lepiller
2019-02-13 11:35 ` Dan Frumin
2019-02-13 11:36 ` [bug#34466] Fwd: " Dan Frumin
2019-02-13 12:19 ` Julien Lepiller
2019-02-13 12:39 ` Danny Milosavljevic
2019-02-13 12:45 ` Julien Lepiller
2019-02-13 13:23 ` Danny Milosavljevic
2019-02-13 21:22 ` bug#34466: " Julien Lepiller
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190213104024.1963-1-dfrumin@cs.ru.nl \
--to=dfrumin@cs.ru.nl \
--cc=34466@debbugs.gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).