From patchwork Fri Sep 13 20:51:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 67942 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 957B627BBEA; Fri, 13 Sep 2024 21:51:57 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham 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 A112227BBE2 for ; Fri, 13 Sep 2024 21:51:56 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spDGk-0004Bo-K7; Fri, 13 Sep 2024 16:51:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spDGi-00042y-D7 for guix-patches@gnu.org; Fri, 13 Sep 2024 16:51:52 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spDGi-0003ha-4k for guix-patches@gnu.org; Fri, 13 Sep 2024 16:51:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=5LC5/des+518xYcfmHnOLoA72L1c4HQ7DAuv9kytD1w=; b=gmA1HZP8D0+NhZG0xGwgmjBA1m+YY4O7GMlXCwat0MPriWyfYWlQlthj3uxuacc3K3zoYz6LqGQPBNYjcpXLn+frkzJM9HNBlqOhe0O7Jy9rCQXwuwz3ciq+L+dFCM4kEYniD0WkHW95Wtk/spQQTYn1mQXQn6DcI7Cuyu2Z75gvsSuO+xAgntMssLtKEaFpoFJYbp2jt4KR96K1f2vB1K4xqrSMV6R7HPg123aNOW1DvjtJwJQ5XIc9ljClnaB5CLt7EkS/jO0YXKozWp5XNdCEKdWneKNVTPjm35Jqksyr0nQxTZWbUOgxtUUzek0zdYDZAkpYY28/5SZK0Yk8rA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spDGr-0008RM-Ly for guix-patches@gnu.org; Fri, 13 Sep 2024 16:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73236] [PATCH 1/2] gnu: Add coq-iris. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Sep 2024 20:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73236 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73236@debbugs.gnu.org Cc: pukkamustard@posteo.net, julien@lepiller.eu Received: via spool by 73236-submit@debbugs.gnu.org id=B73236.172626071132422 (code B ref 73236); Fri, 13 Sep 2024 20:52:01 +0000 Received: (at 73236) by debbugs.gnu.org; 13 Sep 2024 20:51:51 +0000 Received: from localhost ([127.0.0.1]:44329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spDGg-0008Qs-Nw for submit@debbugs.gnu.org; Fri, 13 Sep 2024 16:51:51 -0400 Received: from smtp.forwardemail.net ([207.246.76.47]:26057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spDGd-0008QZ-Hj for 73236@debbugs.gnu.org; Fri, 13 Sep 2024 16:51:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; h=Content-Type: MIME-Version: Message-ID: Date: References: In-Reply-To: Subject: Cc: To: From; q=dns/txt; s=fe-d5cf982890; t=1726260689; bh=5LC5/des+518xYcfmHnOLoA72L1c4HQ7DAuv9kytD1w=; b=pRI8X8olj0LZInfPJHShSP6PItJ08Hhl5aXoEp3CtSxWcoUcMUt6dsTeKmZybn8KdvV7ubjXm oN5Q6IiWZTUmMUpBhtX/id+Udfyz1vjXrtlsg+yg6Yipyo8u1SDDfF4kkYrEy4sdbNZIaFYN/En BG4JHWyr9iY4+8zMWFh0CKM= In-Reply-To: (GNU bug Tracking System's message of "Fri, 13 Sep 2024 20:49:02 +0000") References: <87ed5n2sbi.fsf@antr.me> Date: Fri, 13 Sep 2024 20:51:26 +0000 Message-ID: <87a5gb2s6p.fsf_-_@antr.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; mail@antr.me, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66e4a5cf6c57d9a68975c649 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: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/coq.scm (coq-iris): New variable. Change-Id: I3841ab402fe82149996e1413f9ab3a475f4859d9 --- gnu/packages/coq.scm | 94 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) base-commit: 0e0d9bc91f20ac6dda439ab09330f0163eb9bf42 diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index 31d1e8d51d..bd80cc4a34 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -42,6 +42,7 @@ (define-module (gnu packages coq) #:use-module (gnu packages perl) #:use-module (gnu packages python) #:use-module (gnu packages rsync) + #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) #:use-module (guix build-system dune) #:use-module (guix build-system gnu) @@ -777,3 +778,96 @@ (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-iris + (package + (name "coq-iris") + (version "4.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.mpi-sws.org/iris/iris.git/") + (commit (string-append "iris-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wr1jigzgl4fajl5jv4lanmb8nk4k6wdakakmxhfp5drxwhqgs0y")))) + (build-system gnu-build-system) + (arguments + (list #:parallel-build? #f ; non-deterministic failures + #:tests? #f ; 3 proof failures, appears formatting-related + #:test-target "test" + #:make-flags #~(list (string-append "COQLIBINSTALL=" #$output + "/lib/coq/user-contrib") + ;; Coq interleaves tests into the build. + ;; Work around this in the check phase. + "NO_TEST=1" + ;; Load mappings from _CoqProject into coqtop + ;; TODO: can this be automated? + "COQTOP=coqtop -Q iris/prelude iris.prelude \ +-Q iris/algebra iris.algebra \ +-Q iris/si_logic iris.si_logic \ +-Q iris/bi iris.bi \ +-Q iris/proofmode iris.proofmode \ +-Q iris/base_logic iris.base_logic \ +-Q iris/program_logic iris.program_logic \ +-Q iris_heap_lang iris.heap_lang \ +-Q iris_unstable iris.unstable \ +-Q iris_deprecated iris.deprecated") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "tex" + (invoke "make")))) + (replace 'check + (lambda* (#:key tests? test-target parallel-build? + make-flags #:allow-other-keys) + (when tests? + (apply invoke "make" "-f" "Makefile.coq.local" + "-j" (number->string + (if parallel-build? + (parallel-job-count) + 1)) + test-target make-flags)))) + (add-after 'install 'install-doc + (lambda _ + (install-file + "tex/iris.pdf" + (string-append #$output + "/share/doc/iris/iris.pdf"))))))) + (native-inputs (list (texlive-updmap.cfg + (list texlive-amsfonts + texlive-amsmath + texlive-babel + texlive-biber + texlive-biblatex + texlive-csquotes + texlive-dashbox + texlive-enumitem + texlive-faktor + texlive-geometry + texlive-hyperref + texlive-ifmtarg + texlive-latexmk + texlive-marvosym + texlive-mathpartir + texlive-mathtools + texlive-microtype + texlive-pgf + texlive-scalerel + texlive-semantic + texlive-stmaryrd + texlive-tabbing + texlive-tensor + texlive-xcolor + texlive-xifthen)))) + (propagated-inputs (list coq coq-stdpp)) + (home-page "https://iris-project.org/") + (synopsis "Concurrent separation logic library for Coq") + (description + "This package provides a higher-order concurrent separation logic +library, implemented and verified in the Coq proof assistant. It is used for +reasoning about safety of concurrent programs, as the logic in logical +relations, and to reason about type-systems, data-abstraction, etc.") + (license license:bsd-3)))