From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EBWQJ8XFPWMAVwEAbAwnHQ (envelope-from ) for ; Wed, 05 Oct 2022 19:58:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GFSuJsXFPWNYfgAAG6o9tA (envelope-from ) for ; Wed, 05 Oct 2022 19:58:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4BC1023982 for ; Wed, 5 Oct 2022 19:58:29 +0200 (CEST) Received: from localhost ([::1]:57146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1og8f6-0001W0-FH for larch@yhetil.org; Wed, 05 Oct 2022 13:58:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1og8Yt-0004Fh-Lo for guix-patches@gnu.org; Wed, 05 Oct 2022 13:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1og8Yt-0007n2-9R for guix-patches@gnu.org; Wed, 05 Oct 2022 13:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1og8Ys-0007GE-Ty for guix-patches@gnu.org; Wed, 05 Oct 2022 13:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] [PATCH 12/14] gnu: Add coq-elpi. References: <87h70iqji2.fsf@disroot.org> In-Reply-To: <87h70iqji2.fsf@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 Oct 2022 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58310@debbugs.gnu.org Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.166499229127816 (code B ref 58310); Wed, 05 Oct 2022 17:52:02 +0000 Received: (at 58310) by debbugs.gnu.org; 5 Oct 2022 17:51:31 +0000 Received: from localhost ([127.0.0.1]:58020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8YM-0007EX-H3 for submit@debbugs.gnu.org; Wed, 05 Oct 2022 13:51:30 -0400 Received: from knopi.disroot.org ([178.21.23.139]:41422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1og8YL-0007EP-6z for 58310@debbugs.gnu.org; Wed, 05 Oct 2022 13:51:29 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8AA784C647 for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:51:28 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FR9wEmt5t-HX for <58310@debbugs.gnu.org>; Wed, 5 Oct 2022 19:51:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1664992286; bh=DlOOPkfyOUsccmE1K7unOuRNr6doVc9LSlcX/kgPjro=; h=From:To:Subject:Date; b=boowvF4zP6sLeiX1sAGvgESi3Men86S9aJptShWeI2e9lgq+bzO8JA9yDt/qVf+/G m2dEvFnENqP/XbtMi7BEanFCgilkuXUqdZEAZNd9v1oGC+KlfEp5ROMXK6W9qP1piK BODtANphuGpK+XyJO6HFiI1Es6SbXcMXe38J/Z4vRN4qdhNuFCzAv/GFc5eO50PVyX IfqFdaowg1ZrDE3bT2oGSaE2ir/EPJYdKFGJyfPADFCEtdJIZMzAb7GeraFVA2igQ6 XJmBVZ809w6BrJQXky+eFa+qlhjQWddUi3ydhPElSdoxAcbG5NHb+SSqW04CtSOiJs YwgeMdDMdv6XA== Date: Wed, 05 Oct 2022 13:51:23 -0400 Message-ID: <87o7uqp3ac.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664992709; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ildZLVhiIPxGFlpJpJAm5BbmdPcwnAuJI/Er14Dq0OI=; b=G4+X5bhMARyE54iTlfMrNxElvwtPY0fC3wVOS2JDP/WGoFBLf+xFcmGUWZKgxajDhXpZpy A8TwecODUcdk3rmNsF66mZb8rQYBHdrYHTX1VUFNspc6LUhCDAFhX0TwULz3du0CbV2mde i9WwVMNZlyYNprqGhhS5T7VZ7KtLB0w19vwiiAr6snbbIH2KaXxHeQ5VRRdHY9HmyAozg8 8AegNe56LH/EXmEQNPN+QXATZ/OxrQOZYhJyZSMk0HGZAqE7qdT2UFrltNELUMQn1AdvJU bbdWd+r6e/1RrtRxr7jzuGiKTBgl0F6fe1/4sZD7C422TqLPeWYLPqUHWVFi8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664992709; a=rsa-sha256; cv=none; b=olg6EdbIr04V9xrOADlWGR5mtwCylndVapqoDyodk4Jc8Ukf/JNB/osK4XVaOe9AaLD2xs jMe5oMwrI/DkzL84XyRL0hHsH9827V1pSGyLJH7fxeej5WiF0XJPhfzc8pvGyDchxOLqJD EjXdYk5q/leh3xkG4rBbu+QnADb8NjVFGnuHUKYbjo1HYkVsOzK4xAlkt0bLfXLgEW6a83 hJ3j3ZEESPjbALAZcSdHVx1ZE4vWTBtUJehxUlprucUVJPNyqGWn1JbdYZOZSNOKW65f4F TOsSeIlHcyhn5EIJlIIUV+RjSAhM7mdJNBs9ceK7HbHWAbnX6sYMnTGy8Ijxdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=boowvF4z; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=boowvF4z; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4BC1023982 X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: XMqHUCLsx4+v diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 60937af750..313366cb11 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -771,3 +771,75 @@ (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-elpi + (package + (name "coq-elpi") + ;; For more information on which version works with Coq 8.16, + ;; see the relevant issue: + ;; https://github.com/math-comp/hierarchy-builder/issues/297 + ;; Here we use + ;; coq-elpi 1.15.4 + ocaml-elpi 1.16.5 + + ;; coq-mathcomp-hierarchy-builder 1.3.0 (Coq 8.16) + (version "1.15.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LPCIC/coq-elpi") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "115ll1g5dyn8z58x7xg6nsliga669875s560j5053flr6cvb8mq1")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags ,#~(list (string-append "COQBIN=3D" + #$(this-package-input "coq-cor= e") + "/bin/") + (string-append "ELPIDIR=3D" + #$(this-package-input "ocaml-e= lpi") + "/lib/ocaml/site-lib/elpi") + (string-append "COQMF_COQLIB=3D" + (assoc-ref %outputs "out") + "/lib/ocaml/site-lib/coq") + (string-append "COQLIBINSTALL=3D" + (assoc-ref %outputs "out") + "/lib/coq/user-contrib")) + + #:phases (modify-phases %standard-phases + (delete 'configure) + ;; --- old phase from version 1.14.0 + (add-before 'build 'remove-extra-src-file + (lambda* (#:key outputs #:allow-other-keys) + ;; Remove the useless line "src/META.coq-elpi" + ;; in file _CoqProject. The file + ;; src/META.coq-elpi does not exist in the + ;; repository, so this line inhibits compilation + ;; unnecessarily. + (invoke "sed" "-i" "s|src/META.coq-elpi||g" + "_CoqProject"))) + (replace 'check + ;; Error when running the "check" phase: + ;; "make: *** No rule to make target 'check'. + ;; Stop." + ;; Tests run if we invoke "make test" instead. + (lambda* (#:key tests? make-flags #:allow-other-keys) + (when tests? + (apply invoke "make" "test" make-flags))))))) + (propagated-inputs (list ocaml + ocaml-stdlib-shims + ocaml-elpi + ocaml-zarith + coq-core + coq-stdlib)) + (inputs (list python)) + (home-page "https://github.com/LPCIC/coq-elpi") + (synopsis "Elpi extension language for Coq") + (description + "Coq-elpi provides a Coq plugin that embeds ELPI, an extension langua= ge +for OCaml that is an implementation of =CE=BBProlog. It also provides a w= ay to +embed Coq's terms into =CE=BBProlog using the Higher-Order Abstract Syntax= approach +and a way to read terms back. In addition to that it exports to ELPI a se= t of +Coq's primitives. Finally it provides a way to define new vernacular comm= ands +and new tactics.") + (license license:lgpl2.1))) --=20 2.37.3