From patchwork Sun Mar 13 22:16:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 37786 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 3C6D227BBEA; Sun, 13 Mar 2022 22:17:30 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS 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 E9A1D27BBE9 for ; Sun, 13 Mar 2022 22:17:29 +0000 (GMT) Received: from localhost ([::1]:51148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTWWn-00079u-3p for patchwork@mira.cbaines.net; Sun, 13 Mar 2022 18:17:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTWWN-0006iy-8F for guix-patches@gnu.org; Sun, 13 Mar 2022 18:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTWWM-0001sK-Tr for guix-patches@gnu.org; Sun, 13 Mar 2022 18:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTWWM-0008P4-P4 for guix-patches@gnu.org; Sun, 13 Mar 2022 18:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54357] [PATCH 2/4] gnu: rust-parinfer: add phases to install the bundled Vim and Kakoune plugins Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 13 Mar 2022 22:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54357 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54357@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 54357-submit@debbugs.gnu.org id=B54357.164720978632199 (code B ref 54357); Sun, 13 Mar 2022 22:17:02 +0000 Received: (at 54357) by debbugs.gnu.org; 13 Mar 2022 22:16:26 +0000 Received: from localhost ([127.0.0.1]:43495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTWVl-0008NH-Sb for submit@debbugs.gnu.org; Sun, 13 Mar 2022 18:16:26 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTWVj-0008N8-Vz for 54357@debbugs.gnu.org; Sun, 13 Mar 2022 18:16:24 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 58B154009B; Sun, 13 Mar 2022 23:16:22 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id reE_A_8rW2K3; Sun, 13 Mar 2022 23:16:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1647209780; bh=e9gvc0t99NjzSTmy14f66ytOKntxOXnjaKvTJTaW8LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jCakYGeN0hsbuYnTLq1kcRINV9btKUexlXtAsclPpwRB5URB4WIImusabCOtGAXgJ kbD17zDGybYbDuNyqLVlVYjqylkXNqtyUvUEzSvhtsh7uAtqFFHOJ08f0FtHITUs1r gAu2Vn/jlRwPk+AJQpVENo4Ui8EP91nX8DQvMq2l/JBVU9Lidec6CLPlbabfqV1qVC gQmBUaOE/Pw0NJoiffb3RhkqEFNhyH0BVQlAnHnB+MalUixcuvpi4MF8ap8WOvvJAm 2U9ddbwu2fpv84V00gtdYr+EDkdPLfizkc8XTVSCKT3UUPX1P/xCZvGES0VRslnLbg 6X0IOhsaDMEtw== Date: Sun, 13 Mar 2022 22:16:02 +0000 Message-Id: <20220313221604.7686-2-paren@disroot.org> In-Reply-To: <20220313221604.7686-1-paren@disroot.org> References: <20220313221604.7686-1-paren@disroot.org> 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" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" X-Patchwork-Original-From: "\(unmatched-parenthesis via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/text-editors.scm (rust-parinfer)[arguments]: Install the bundled Vim and Kak plugins to the correct directories. --- gnu/packages/text-editors.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 96e070807d..229e9f9112 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -292,7 +292,18 @@ (define-public parinfer-rust ("rust-serde-json" ,rust-serde-json-1) ("rust-serde-derive" ,rust-serde-derive-1) ("rust-unicode-segmentation" ,rust-unicode-segmentation-1) - ("rust-unicode-width" ,rust-unicode-width-0.1)))) + ("rust-unicode-width" ,rust-unicode-width-0.1)) + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-vim-plugin + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (copy-recursively "doc" (string-append out "/share/vim/vimfiles/doc")) + (copy-recursively "plugin" (string-append out "/share/vim/vimfiles/plugin"))))) + (add-after 'install-vim-plugin 'install-kak-plugin + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (copy-recursively "rc" (string-append out "/share/kak/autoload")))))))) (inputs (list clang)) (home-page "https://github.com/justinbarclay/parinfer-rust")