From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2MN8GUBxH2KKdQAAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 14:29:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6GcSFkBxH2J5DQEAauVa8A (envelope-from ) for ; Wed, 02 Mar 2022 14:29:36 +0100 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 131BFA206 for ; Wed, 2 Mar 2022 14:29:36 +0100 (CET) Received: from localhost ([::1]:38004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPP2p-0005M1-Qv for larch@yhetil.org; Wed, 02 Mar 2022 08:29:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPOtf-0001kc-EB for guix-patches@gnu.org; Wed, 02 Mar 2022 08:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPOtf-0000UF-3L for guix-patches@gnu.org; Wed, 02 Mar 2022 08:20:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nPOte-0002RZ-VI for guix-patches@gnu.org; Wed, 02 Mar 2022 08:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54221] [PATCH 2/4] gnu: neovim: Search and use installed plugins, like vim. Resent-From: SeerLite Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Mar 2022 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54221 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54221@debbugs.gnu.org Cc: SeerLite Received: via spool by 54221-submit@debbugs.gnu.org id=B54221.16462271889320 (code B ref 54221); Wed, 02 Mar 2022 13:20:02 +0000 Received: (at 54221) by debbugs.gnu.org; 2 Mar 2022 13:19:48 +0000 Received: from localhost ([127.0.0.1]:39360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPOtP-0002QF-St for submit@debbugs.gnu.org; Wed, 02 Mar 2022 08:19:48 -0500 Received: from mx.nixnet.email ([94.16.121.167]:56638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nPOtO-0002Q0-Jp for 54221@debbugs.gnu.org; Wed, 02 Mar 2022 08:19:47 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mx.nixnet.email (Postfix) with ESMTPSA id 03EEF2020E7; Wed, 2 Mar 2022 08:19:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nixnet.email; s=202002021149; t=1646227186; h=from:from:reply-to:subject:subject:to:to:cc:cc; bh=FGn2RtqG+omSIqoSvtOy1imHWWHz0ee1V9UsU+NTRTg=; b=Oy5c+825I4sbuP7M/qEs9qryWWR8+4OsNfNckW8mZKiRDkmylp9CBrtm+097HQi0+voq3M MFfuIlCRuHoXTOyxN40Q230VAaHxqAtbuF0GI8uNjl7ufR/FeZ2NtM5trFm6cnH30Fa/YM IDBF1jc+mUixM9L0Rfn3GmFLztaPOQU= Date: Wed, 2 Mar 2022 10:17:33 -0300 Message-Id: <39a5e8f9c8f4e3fee5f36824780296f55995ae33.1646227054.git.seerlite@nixnet.email> X-Mailer: git-send-email 2.34.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: SeerLite X-ACL-Warn: , SeerLite via Guix-patches From: SeerLite via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646227776; 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-transfer-encoding:content-transfer-encoding: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=FGn2RtqG+omSIqoSvtOy1imHWWHz0ee1V9UsU+NTRTg=; b=DAf+H6EPNLE2iymy9gSkn3JEgTWsKI0j3hWBG9seL6k5MbSB5UsWtWCejzIdmIwM3Eg/Uy 775BgmYDit7AJ5dnPz2TudXyrpPdiVDbtGN3zxnF35/JjmxfY5+ld48Iu9+cYP7YjmuSty f8JkAThVJiHuC1KTs59Sy0JIesXQNwEYqlF8NxnGWahpg1FGEoYgPvG+s5tGTgQMNHgIJZ Zw0MNQTfKPccWobyLp3NJNUAr2jV5+Ib1S7YoNKNfo6LzHT0bt6XopeINqS3XpBVJoP7f/ 1aO81mf3imKRjIzCPnHsg8aD381Q6R1R6Rya4rom3JyQj4khBckSOwryLlNDxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646227776; a=rsa-sha256; cv=none; b=btHcVeScuNDmNK8xDE3JWVcAQo8j0v0ZTvA+Pzke1Mt0fy1Seck65mJljnyLNpdCmvGc2U dbuTDgLKP6DEu8ZHsMO/a3D+cnYVRb2xuhTvj4KopplZ8TSyrlAJhh2fRZ2OzLGys6raIc ycNpxJ6TRwevboRhzeSb4jjHtLYXWovDPJPtHOcMc3sqjGzBCJn57gRdHAjnTX4nrS5U3l EgigDD1K84yYKyds4c1PvaMWaqiJ4WeKzA76NlIDGkhMJnpCOgDG76iwOwf9lOtoFxp0/d 06tvfBz7WySUlvSXH5fuUWPPMrZBN65fFvyx0BgfDddGCTPZKMj9zG7GzDnGGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nixnet.email header.s=202002021149 header.b=Oy5c+825; 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" X-Migadu-Spam-Score: -3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=nixnet.email header.s=202002021149 header.b=Oy5c+825; 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" X-Migadu-Queue-Id: 131BFA206 X-Spam-Score: -3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8AlhGF9MBctj * gnu/packages/vim.scm (neovim)[phases]{install-guix.vim}: New phase. [native-search-paths]: Add search path specification for 'GUIX_VIMRUNTIME'. --- gnu/packages/vim.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 7407ae71d7..3997797201 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm @@ -714,7 +714,18 @@ (define-public neovim ;; doubles its size. We remove the refirence here. (substitute* "cmake/GetCompileFlags.cmake" (("\\$\\{CMAKE_C_COMPILER\\}") "/gnu/store/.../bin/gcc")) - #t))))) + #t)) + (add-after 'install 'install-guix.vim + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((nvimdir (string-append (assoc-ref outputs "out") "/share/nvim"))) + (mkdir-p nvimdir) + (copy-file (assoc-ref inputs "guix.vim") + (string-append nvimdir "/sysinit.vim")))))))) + (native-search-paths + (list (search-path-specification + (variable "GUIX_VIMRUNTIME") + (separator ",") + (files (list "share/vim/vimfiles"))))) (inputs `(("libuv" ,libuv) ("msgpack" ,msgpack) @@ -730,7 +741,8 @@ (define-public neovim (native-inputs `(("pkg-config" ,pkg-config) ("gettext" ,gettext-minimal) - ("gperf" ,gperf))) + ("gperf" ,gperf) + ("guix.vim" ,(search-auxiliary-file "guix.vim")))) (home-page "https://neovim.io") (synopsis "Fork of vim focused on extensibility and agility") (description "Neovim is a project that seeks to aggressively -- 2.34.0