From patchwork Sat Mar 12 22:00:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 37762 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 58BCA27BBEA; Sat, 12 Mar 2022 22:01:11 +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,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 274B627BBE9 for ; Sat, 12 Mar 2022 22:01:11 +0000 (GMT) Received: from localhost ([::1]:43030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT9nS-00007c-7w for patchwork@mira.cbaines.net; Sat, 12 Mar 2022 17:01:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT9nK-00006O-DG for guix-patches@gnu.org; Sat, 12 Mar 2022 17:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT9nK-0003gF-43 for guix-patches@gnu.org; Sat, 12 Mar 2022 17:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nT9nK-0006PY-2X for guix-patches@gnu.org; Sat, 12 Mar 2022 17:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54358] [PATCH] 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: Sat, 12 Mar 2022 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54358 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54358@debbugs.gnu.org Cc: "\(unmatched-parenthesis" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164712244824616 (code B ref -1); Sat, 12 Mar 2022 22:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2022 22:00:48 +0000 Received: from localhost ([127.0.0.1]:40985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT9n5-0006Ow-VC for submit@debbugs.gnu.org; Sat, 12 Mar 2022 17:00:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:33412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nT9n4-0006Op-L8 for submit@debbugs.gnu.org; Sat, 12 Mar 2022 17:00:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT9n4-0008Tt-6B for guix-patches@gnu.org; Sat, 12 Mar 2022 17:00:46 -0500 Received: from knopi.disroot.org ([178.21.23.139]:37284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT9n1-0003Wu-HP for guix-patches@gnu.org; Sat, 12 Mar 2022 17:00:45 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 508CB400D7; Sat, 12 Mar 2022 23:00:41 +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 h85MF2H89aVO; Sat, 12 Mar 2022 23:00:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1647122439; bh=O7ZDfmoMr0bgOor9GFv5K/QTMtaVwdyKPLkVqPOz1Ws=; h=From:To:Cc:Subject:Date; b=f5TF7xfAwtf41KmX8zYbUcRDncB+KuKbX+nq/65rJnbSPIkiW25f1YsTe4alrqVqK w5LXBRVrDagCRiJsToYm2MAarNpBn+e2wtDqxRXht3UcMNLt8MrA4ewsdpE66Pi76r q9BPwFQ0Kp2qhq8o58bXtKEKawVdxpOo0Ui8MO/5E8RCPu7yQ/+B51zm2bB7XnKGok fvEEIJBVNisd5dFINR7jW2fl2aSLd3LxfpnzPwlB9ge9URqq42JXVWDnR2EeZjz4zH kLsDiz8Sqm1bWotEDXtwVwgGJUHYYDSY9ZswdnPYyOh0QyLQffIfoIwn2/upTvGwhc krDsZzEO57pWQ== Date: Sat, 12 Mar 2022 22:00:30 +0000 Message-Id: <20220312220030.17172-1-paren@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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. This does not _technically_ depend on #54357, but the kakoune plugin will be essentially unusable without it. --- 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 6d562d0e4a..bbfbcdd226 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")