From patchwork Wed Feb 13 10:40:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Frumin X-Patchwork-Id: 1073 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5020416C0D; Wed, 13 Feb 2019 10:43:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 079B716C0B for ; Wed, 13 Feb 2019 10:43:54 +0000 (GMT) Received: from localhost ([127.0.0.1]:54703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gts1B-0003da-CL for patchwork@mira.cbaines.net; Wed, 13 Feb 2019 05:43:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gts0N-0003Dy-Fv for guix-patches@gnu.org; Wed, 13 Feb 2019 05:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gts0M-0008HF-K5 for guix-patches@gnu.org; Wed, 13 Feb 2019 05:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46494) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gts0M-0008H9-HC for guix-patches@gnu.org; Wed, 13 Feb 2019 05:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gts0M-0007pY-3i for guix-patches@gnu.org; Wed, 13 Feb 2019 05:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34466] [PATCH] gnu: Add coq-equations. Resent-From: Dan Frumin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Feb 2019 10:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34466 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34466@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155005453030010 (code B ref -1); Wed, 13 Feb 2019 10:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Feb 2019 10:42:10 +0000 Received: from localhost ([127.0.0.1]:45773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtrzW-0007nx-Fl for submit@debbugs.gnu.org; Wed, 13 Feb 2019 05:42:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gtrzU-0007nh-Df for submit@debbugs.gnu.org; Wed, 13 Feb 2019 05:42:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:55472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtrzP-0007rS-7j for submit@debbugs.gnu.org; Wed, 13 Feb 2019 05:42:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtrzJ-0002eM-I2 for guix-patches@gnu.org; Wed, 13 Feb 2019 05:42:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtrzI-0007kj-MF for guix-patches@gnu.org; Wed, 13 Feb 2019 05:41:57 -0500 Received: from smtp2.science.ru.nl ([131.174.16.145]:56702) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtrzI-0007dg-Dx for guix-patches@gnu.org; Wed, 13 Feb 2019 05:41:56 -0500 Received: from localhost.localdomain (n142220.science.ru.nl [131.174.142.220]) (authen=dfrumin@cs.ru.nl) by smtp2.science.ru.nl (8.14.4/5.32) with ESMTP id x1DAfIO1032271; Wed, 13 Feb 2019 11:41:49 +0100 From: Dan Frumin Date: Wed, 13 Feb 2019 11:40:24 +0100 Message-Id: <20190213104024.1963-1-dfrumin@cs.ru.nl> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dan Frumin Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- 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)))