From patchwork Tue Nov 16 18:51:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 34537 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 173E827BBE3; Tue, 16 Nov 2021 18:53:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6543C27BBE1 for ; Tue, 16 Nov 2021 18:53:11 +0000 (GMT) Received: from localhost ([::1]:59048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn3Zu-0001d4-ID for patchwork@mira.cbaines.net; Tue, 16 Nov 2021 13:53:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn3Zm-0001cL-Ok for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn3Zm-0007dk-Gr for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mn3Zm-0008MA-GC for guix-patches@gnu.org; Tue, 16 Nov 2021 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51896] [PATCH v2 1/5] gnu: Add coq-semantics. References: <20211116175936.11987-1-zimon.toutoune@gmail.com> In-Reply-To: <20211116175936.11987-1-zimon.toutoune@gmail.com> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Nov 2021 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51896 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51896@debbugs.gnu.org Cc: julien@lepiller.eu, zimoun Received: via spool by 51896-submit@debbugs.gnu.org id=B51896.163708872731965 (code B ref 51896); Tue, 16 Nov 2021 18:53:02 +0000 Received: (at 51896) by debbugs.gnu.org; 16 Nov 2021 18:52:07 +0000 Received: from localhost ([127.0.0.1]:59182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn3Yq-0008JG-7z for submit@debbugs.gnu.org; Tue, 16 Nov 2021 13:52:07 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:36635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mn3Yo-0008IY-Cy for 51896@debbugs.gnu.org; Tue, 16 Nov 2021 13:52:02 -0500 Received: by mail-wm1-f52.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso2818782wml.1 for <51896@debbugs.gnu.org>; Tue, 16 Nov 2021 10:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nqlNzlDsq2lv9OqNcPwWRDsay60FTnY6Z3K77N+v+VA=; b=aJ5hbzaLfCvffHEgeZ+FLh9mHzfv2vyttFIZKchgAQs2GUEej2hs/2BExuxzGaZm0D NHq+TYf/+8IVuyOCfeK/Iho3LBqZyUe8woz4yeYyQBO4PH8d8B223O+Z4L4R0WSRORam MO4IynFKq5qN1k2PYg0+FtzRKSifgc8ocE+oRxa6vY/M59A1cqzkvwRKEyeL4MH+YFAI logxhfMkCdHHLDvpztsbmXDywnNbUAppLoL0/9Ly2pYGAkg2bFkpAez0K/v1lajXplvm 22mp8+vJcKvc6bH7U36cMrLd0cU5M/oSgMZrlNNq8N/gQGxPehXqlgsrseFPjLcvYQrE fU5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nqlNzlDsq2lv9OqNcPwWRDsay60FTnY6Z3K77N+v+VA=; b=QfCYgxvngY9FWLTukhHBHWCRp0e31o3Eghjaz0hoOALKbcdgai7p4oe+2rE8tQ5T28 BJBjqVc9/YrQvw5tyfjZAxUFcRj2HKucsYJGT5PKbuh5E7jkVeChx2IXIGiYh1UPCAWs V1TobjHyCLzcaAmUgWvxoiHW7ijnt1Ob/SEZvOMFsEKuYVBI2pLXPUpgjDHOaLtF4YJb SyyzQ/nzUze5spyk/sQEfqabpYPTHBIo/iaLe8a0bpdM5NbjhfycLUFa2aGE9cJvp/Xo EKD6uzmGZhEZIktK+MruU6CfS0+SUnFtJbgYh3q6keeH5gTF7AtvKXXcGDYW9/z/uw+d Qi1g== X-Gm-Message-State: AOAM531EX30K1YkBiajsU/06ohsslPi/kpUrbC3mDESwUbVAFoGjiqsq YDNO7C8BnEFJqLifo6s4BbTnFcPLZPI= X-Google-Smtp-Source: ABdhPJwD9SyoRev6GWuq4LYpfP3zLa39IAhWeh8eruKjtvqUXSvaqec5SmxDXNpB1BjZmd2fygoUMA== X-Received: by 2002:a05:600c:21cd:: with SMTP id x13mr73106925wmj.52.1637088716315; Tue, 16 Nov 2021 10:51:56 -0800 (PST) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id i15sm3821993wmq.18.2021.11.16.10.51.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 10:51:55 -0800 (PST) From: zimoun Date: Tue, 16 Nov 2021 19:51:50 +0100 Message-Id: <20211116185154.22062-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/coq.scm (coq-semantics): New variable. --- gnu/packages/coq.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) base-commit: 122396075f12b013b6bde56dafb895587b95bc9d diff --git a/gnu/packages/coq.scm b/gnu/packages/coq.scm index dccb9bea4c..322bdb126e 100644 --- a/gnu/packages/coq.scm +++ b/gnu/packages/coq.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2020 raingloom ;;; Copyright © 2020 Robin Green ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -573,6 +574,56 @@ (define-public coq-equations kernel.") (license license:lgpl2.1))) +(define-public coq-semantics + (package + (name "coq-semantics") + (version "8.13.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/coq-community/semantics") + (commit (string-append "v" version)))) + (modules '((guix build utils))) + (snippet + '(substitute* "Makefile.coq.local" + ;; Num was part of OCaml and now external + (("-libs nums") "-use-ocamlfind -pkg num -libs num"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0m5si9dsv96z92gy4xaqz8mzyz8zp7j1sp542l0wzsp5xgyfpc7i")))) + (build-system gnu-build-system) + (native-inputs + `(("coq" ,coq) + ("ocaml" ,ocaml) + ("ocamlbuild" ,ocamlbuild) + ("ocaml-findlib" ,ocaml-findlib))) + (inputs + `(("ocaml-num" ,ocaml-num))) + (arguments + `(#:tests? #f ;included in Makefile + #:make-flags (list (string-append "COQLIBINSTALL=" + (assoc-ref %outputs "out") + "/lib/coq/user-contrib")) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (home-page "https://github.com/coq-community/semantics") + (synopsis "Survey of semantics styles") + (description + "This package provides a survey of programming language semantics styles, +from natural semantics through structural operational, axiomatic, and +denotational semantics, for a miniature example of an imperative programming +language. Their encoding, the proofs of equivalence of different styles, +abstract interpretation, and the proof of soundess obtained from axiomatic +semantics or abstract interpretation is done in Coq. The tools can be run +inside Coq, thus making them available for proof by reflection. Code can also +be extracted and connected to a yacc-based parser, thanks to the use of a +functor parameterized by a module type of strings. A hand-written parser is +also provided in Coq, without associated proofs.") + (license license:expat))) + (define-public coq-stdpp (package (name "coq-stdpp")