From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QDXLI+6l5GbQYwAA62LTzQ:P1 (envelope-from ) for ; Fri, 13 Sep 2024 20:51:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QDXLI+6l5GbQYwAA62LTzQ (envelope-from ) for ; Fri, 13 Sep 2024 22:51:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gmA1HZP8; dkim=fail ("headers rsa verify failed") header.d=antr.me header.s=fe-d5cf982890 header.b=pRI8X8ol; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726260718; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=5LC5/des+518xYcfmHnOLoA72L1c4HQ7DAuv9kytD1w=; b=A6H0Q7VSGJZLwFnZqHlbXabqB3+17sMcz+aFxRXudcjQr5bjw1NniZfGkRGF/nSEXL+GWx 7JWLroMgSlzqo4LkWQGD9KKIaBqN/PuWRuoHTOSTWccihsLzzqLjp5pQuJXpeN8g1g7R7k cP4AS715YrMod0a0M4wYp3RgOlrdlmjuD/YEgpdo++z0WHEdsBS8EUaY0NygFuy8RHxyND o6hyvikIJqf2MGxTHnemP8mLRldC2BfqiV1zWD17h8rc8A3bez9tPuS/y6R7XCeRIeYZbo KUsxUbNMp99HwY6pqt4x8jVZYPoxy+lGO5SQv3Ku6Fo92sIDU+I+M+BnjruyrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726260718; a=rsa-sha256; cv=none; b=LnIlB9Jimaco97+uFLctV6k63BKHMd9XlnA8vZZAXz3JnM4JmBDgT9xzQVFEhV6vJnrSn4 6vesybqPHOwjFzbodzboWrJhy5wqe3ibYzgoAqVOMjlWcyhrzA7jIw+NHZdNZqn2RNdIqz xgRn/SxZ8vvC61prgtx1Vbw7tBfVA9vnKK+vnq+EE17JiZIuX0b1QHPgJB7GdGcaAwWPul etdOJiKM8hmrjiEI5yrJM3YZ+eBnQJnC9bt2viNOP6GPxHTwcAngeTkI3f1NK1lemdMWpZ UcpNybLB59eJ7vHohaLrzB2aVjw3ETAhgIhynN3PJEBdlkS0iN+djvqJ6W0tcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gmA1HZP8; dkim=fail ("headers rsa verify failed") header.d=antr.me header.s=fe-d5cf982890 header.b=pRI8X8ol; 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" 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 D8D765B524 for ; Fri, 13 Sep 2024 22:51:56 +0200 (CEST) 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 Content-Type: text/plain 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 From: Antero Mejr via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.91 X-Spam-Score: -4.91 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: D8D765B524 X-TUID: n96lGGFNaDft * gnu/packages/coq.scm (coq-iris): New variable. Change-Id: I3841ab402fe82149996e1413f9ab3a475f4859d9 --- gnu/packages/coq.scm | 94 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) 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))) base-commit: 0e0d9bc91f20ac6dda439ab09330f0163eb9bf42 -- 2.46.0