From patchwork Fri Sep 8 10:34:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre De Jesus DIAZ X-Patchwork-Id: 53675 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 ECBC827BBE9; Fri, 8 Sep 2023 11:36:11 +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 E5BCB27BBE2 for ; Fri, 8 Sep 2023 11:36:06 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeYqH-0006Bh-86; Fri, 08 Sep 2023 06:36:01 -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 1qeYqG-0006BR-BZ for guix-patches@gnu.org; Fri, 08 Sep 2023 06:36:00 -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 1qeYqG-0001AG-3L for guix-patches@gnu.org; Fri, 08 Sep 2023 06:36:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeYqI-0003ag-8M for guix-patches@gnu.org; Fri, 08 Sep 2023 06:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65820] [PATCH 3/3] gnu: Add vim-coqtail. Resent-From: Jean-Pierre De Jesus DIAZ Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Sep 2023 10:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65820 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65820@debbugs.gnu.org Cc: Jean-Pierre De Jesus DIAZ Received: via spool by 65820-submit@debbugs.gnu.org id=B65820.169416932113753 (code B ref 65820); Fri, 08 Sep 2023 10:36:02 +0000 Received: (at 65820) by debbugs.gnu.org; 8 Sep 2023 10:35:21 +0000 Received: from localhost ([127.0.0.1]:42282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeYpc-0003Zl-OP for submit@debbugs.gnu.org; Fri, 08 Sep 2023 06:35:21 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:45403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeYpZ-0003ZU-E8 for 65820@debbugs.gnu.org; Fri, 08 Sep 2023 06:35:18 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40061928e5aso21234015e9.3 for <65820@debbugs.gnu.org>; Fri, 08 Sep 2023 03:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundationdevices.com; s=google; t=1694169309; x=1694774109; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NFGKG0nzc/mz9hYSud8JVtEjb0yH6VvwMoGqjN1m3RU=; b=FvdutfY/rbFOoKNQUkQTNcHwvNxC7rIrFVCjd0vGjjRR6heBSwLSEDX5AHxunHbayZ jc5SwmJYYOHUK+Od/edmkZu5JIgHm9HSlYwC3hDKLH5CAQRdmEGnMtjYlD5BFkAc7CFD jQUHTXt+L6Lole4gG8DhBMBEgmbOWrJ/l33ksP1HRQSi7VjyTK8EuxVAoTkS1i6hTTld KuyKpzoJaL/dfLLia584MjUweLQEXS0czFIinZLhxTAeRb4kfSCvp68oF+gvxdrU+Cmc xVGz8Ck4iJNDp92Bfe+3hwwOHV0J0pRV4MQZ4lR1yRVmgJGlpOAwTNlCR+C9nYGOAurq whMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694169309; x=1694774109; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NFGKG0nzc/mz9hYSud8JVtEjb0yH6VvwMoGqjN1m3RU=; b=JJd1hynJMFs08WNjVVmzgnVIqDRwJqBm4YA5jxc3wYBLrV8R7XFY1t0Czh16Fb1Bzy KQbxBNv+uatYth5OtYHlPVIg/JCMcOhN1ztUaYxHcjAWCgtCPniqtE4s19QJ+CV/txKG rU0hk4fx7Miy3vAYs85XwuXEBj8dT/2QhV9QMsQ1ex8mLkEXtAem/DO0uoEnTpcsDSmC bya1JoRn9Oay+ChOJ6VX76I2RHVhn3SZUsSU7lftvAOzM1Aww0jbQjK1fh+wTk1Phd4Z qgjJ9DTKZIf0P5Z9TUr7WBB/wz5tSjhaJalPSiJo5mCajVm6m5/8V/ga2Oo5iu39gFMj yJdw== X-Gm-Message-State: AOJu0YzQZKf3LPNCoos7prcJs2AEKqz579o4aPFRlHP1xgT2rZfxdq6J 8tRv9i+Dd/mwgYcpiW9MRAMwucmGkZE/TGLr0ojDGw== X-Google-Smtp-Source: AGHT+IF41AWWVzYs16Htz8eC7pNIRKcrx+mh3cIzttD1A4jGuylpqS5K7eC1FqUDDEbJOEQuuIuqDA== X-Received: by 2002:a05:600c:218e:b0:3fe:4e4e:bedb with SMTP id e14-20020a05600c218e00b003fe4e4ebedbmr1772411wme.4.1694169309054; Fri, 08 Sep 2023 03:35:09 -0700 (PDT) Received: from omen15.home ([89.131.29.87]) by smtp.gmail.com with ESMTPSA id l40-20020a05600c1d2800b00402f7b50517sm1442102wms.40.2023.09.08.03.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 03:35:08 -0700 (PDT) Date: Fri, 8 Sep 2023 12:34:23 +0200 Message-Id: <20230908103419.21662-3-jean@foundationdevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230908103419.21662-1-jean@foundationdevices.com> References: <20230908103419.21662-1-jean@foundationdevices.com> 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: , Reply-to: Jean-Pierre De Jesus DIAZ X-ACL-Warn: , Jean-Pierre De Jesus DIAZ via Guix-patches X-Patchwork-Original-From: Jean-Pierre De Jesus DIAZ via Guix-patches via From: Jean-Pierre De Jesus DIAZ 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/vim.scm (vim-coqtail): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ --- gnu/packages/vim.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index e7c51c1c2d..957b0d4f2e 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -49,7 +49,9 @@ (define-module (gnu packages vim) #:use-module (gnu packages attr) #:use-module (gnu packages autotools) #:use-module (gnu packages base) + #:use-module (gnu packages check) #:use-module (gnu packages code) + #:use-module (gnu packages coq) #:use-module (gnu packages enlightenment) #:use-module (gnu packages fontutils) #:use-module (gnu packages gawk) @@ -463,6 +465,68 @@ (define-public vim-context-filetype (home-page "https://github.com/Shougo/context_filetype.vim") (license license:expat)))) ; ??? check again +(define-public vim-coqtail + (let ((commit "dfe3939c9caff69d9af76bfd74f1a40fb7dc5609") + (revision "0")) + (package + (name "vim-coqtail") + (version (git-version "1.7.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/whonore/Coqtail") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0av2m075n6z05ah9ndrgnp9s16yrz6n2lj0igd9fh3c5k41x5xks")))) + (build-system copy-build-system) + (arguments + '(#:install-plan + '(("autoload" "share/vim/vimfiles/") + ("doc" "share/vim/vimfiles/") + ("ftdetect" "share/vim/vimfiles/") + ("ftplugin" "share/vim/vimfiles/") + ("indent" "share/vim/vimfiles/") + ("python" "share/vim/vimfiles/") + ("syntax" "share/vim/vimfiles/")) + #:phases + (modify-phases %standard-phases + (add-before 'install 'check + (lambda* (#:key inputs native-inputs tests? #:allow-other-keys) + (when tests? + (display "Running Python unit tests.\n") + (setenv "PYTHONPATH" (string-append (getcwd) "/python")) + (invoke "pytest" "-q" "tests/unit") + + (display "Running Python Coq tests.\n") + (invoke "pytest" "-q" "tests/coq") + + (display "Running Vim unit tests.\n") + (let* ((vim-vader (assoc-ref (or native-inputs inputs) + "vim-vader")) + (vader-path (string-append vim-vader + "/share/vim/vimfiles"))) + (with-directory-excursion "tests/vim" + (setenv "VADER_PATH" vader-path) + (invoke "vim" "-E" "-Nu" "vimrc" + "-c" "Vader! *.vader"))) + + ;; Remove __pycache__ files generated during testing so that + ;; they don't get installed. + (delete-file-recursively "python/__pycache__"))))))) + (native-inputs + (list coq-for-coqtail + python-pytest + vim-full ;; Plugin needs Python 3. + vim-vader)) + (propagated-inputs (list coq coq-ide-server)) + (synopsis "Interactive Coq proofs in Vim") + (description "Coqtail enables interactive Coq proof development in Vim +similar to CoqIDE or ProofGeneral.") + (home-page "https://github.com/whonore/Coqtail") + (license license:expat)))) + (define-public vim-fugitive (package (name "vim-fugitive")