From patchwork Wed Sep 7 18:33:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42281 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 7A33127BBE9; Wed, 7 Sep 2022 19:36:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D93B27BBE9 for ; Wed, 7 Sep 2022 19:36:19 +0100 (BST) Received: from localhost ([::1]:46298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzuM-00064r-88 for patchwork@mira.cbaines.net; Wed, 07 Sep 2022 14:36:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVzsD-0004iE-6l for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVzsC-0005GJ-TU for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVzsC-0007zI-PP for guix-patches@gnu.org; Wed, 07 Sep 2022 14:34:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [RFC PATCH v2 08/19] gnu: Add coq-mathcomp-analysis.* gnu/packages/coq.scm (coq-mathcomp-analysis): New variable. References: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> In-Reply-To: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Sep 2022 18:34:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57540@debbugs.gnu.org Received: via spool by 57540-submit@debbugs.gnu.org id=B57540.166257563830636 (code B ref 57540); Wed, 07 Sep 2022 18:34:04 +0000 Received: (at 57540) by debbugs.gnu.org; 7 Sep 2022 18:33:58 +0000 Received: from localhost ([127.0.0.1]:56223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzs5-0007y3-9i for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:33:57 -0400 Received: from knopi.disroot.org ([178.21.23.139]:48328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzs3-0007xv-TW for 57540@debbugs.gnu.org; Wed, 07 Sep 2022 14:33:56 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4246140121 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:33:55 +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 fcLFxkWMD1VF for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:33:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662575633; bh=yGgZnp5IMdYK/UCQp/JZeOcggsUc6UUGx418O6fjyQ0=; h=From:To:Subject:Date; b=LfA/9D0i9KwTulektjQ4bXO2C5uP+jH0s4b7Jl6x5wy9knHMWTuzaVDdmZxpiqquq oySS4Wd7DGKSQnw9rvR9R4hltWwHX8zfkR+pLr8QMup8ngCh7r0jasd1jy+OwID2j2 TtZhFZQnjZ03Fnx4JYabrtGKag+Csf/k2ICTk8U91H/BzOtL9Kst8tH8se0WDKyUQF G8jM3sAXmx4BvdzzxZAAnl1fOb/iqK3FI3jOWH1wAfPRV2qC1jCxpfTvj9+ypeu57o PkIDzpRA5onmbXe4s+45TxVDAYkE2Hb2DHnI4LHNxrRm9yegoTNhtCPgjeia+w5QqD iLlXhdScXC52Q== Date: Wed, 07 Sep 2022 14:33:50 -0400 Message-ID: <87illzvxtd.fsf@disroot.org> Mime-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches X-Patchwork-Original-From: Garek Dyszel via Guix-patches via From: Garek Dyszel X-getmail-retrieved-from-mailbox: Patches * gnu/packages/coq.scm (coq-mathcomp-analysis): New variable. --- gnu/packages/coq.scm | 66 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 78ef5473fd..036134b8ff 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -923,3 +923,69 @@ (define-public coq-mathcomp-bigenough near tactics. The formalization is based on the Mathematical Components library.") (license license:cecill-b))) + +(define-public coq-mathcomp-analysis + (package + (name "coq-mathcomp-analysis") + (version "0.5.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/math-comp/analysis") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1l1yaxbmqr4li8x7g51q98a6v383dnf94lw1b74ccpwqz9qybz9m")))) + (build-system gnu-build-system) + (arguments + `( ;No rule to make target 'check'. Stop. + ;; Makefile.common has no references to tests. + ;; There are also no references to tests found after + ;; running the following commands in the top + ;; directory of the cloned repo: + ;; find -type d | grep -i test + ;; rg test # where rg is ripgrep + ;; Checking the git log, we find: "Add test suite for + ;; joins and several fixes". + ;; + ;; If tests are included, this quote suggests that they + ;; would be part of the source files themselves, + ;; and the tests would be run as part of the build + ;; process. + #:tests? #f + #:make-flags ,#~(list (string-append "COQBIN=" + #$(this-package-input "coq-core") + "/bin/") + (string-append "COQBININSTALL=" + (assoc-ref %outputs "out") "/bin/") + (string-append "DESTDIR=" + (assoc-ref %outputs "out")) + (string-append "COQMF_COQLIB=" + (assoc-ref %outputs "out") + "/lib/ocaml/site-lib/coq") + (string-append "COQLIBINSTALL=" + (assoc-ref %outputs "out") + "/lib/coq/user-contrib")) + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" "build" make-flags)))))) + (inputs (list coq + coq-stdlib + coq-mathcomp + coq-mathcomp-finmap + coq-mathcomp-hierarchy-builder + coq-elpi + coq-mathcomp-bigenough + coq-core + which + python)) + (synopsis "Real analysis for the Coq proof assistant") + (description + "This repository contains an experimental library for +real analysis for the Coq proof-assistant, using the Mathematical +Components library.") + (home-page "https://math-comp.github.io/") + (license license:cecill-c)))