From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mBpiNj5sgGOjCgAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 08:18:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iOdpNT5sgGNqKwEAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 08:18:22 +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 A7D9710F3A for ; Fri, 25 Nov 2022 08:18:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oySyM-0006gK-Aw; Fri, 25 Nov 2022 02:18:07 -0500 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 1oySyJ-0006fE-SV for guix-patches@gnu.org; Fri, 25 Nov 2022 02:18:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oySyI-0002mf-UV for guix-patches@gnu.org; Fri, 25 Nov 2022 02:18:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oySyH-0003iX-VS for guix-patches@gnu.org; Fri, 25 Nov 2022 02:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 29/32] gnu: Add rust-tree-sitter-for-emacs. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Nov 2022 07:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "Pierre Langlois" , <49946@debbugs.gnu.org> Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.166936068014282 (code B ref 49946); Fri, 25 Nov 2022 07:18:01 +0000 Received: (at 49946) by debbugs.gnu.org; 25 Nov 2022 07:18:00 +0000 Received: from localhost ([127.0.0.1]:33287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySyG-0003iH-1c for submit@debbugs.gnu.org; Fri, 25 Nov 2022 02:18:00 -0500 Received: from knopi.disroot.org ([178.21.23.139]:45518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySyE-0003i9-LY for 49946@debbugs.gnu.org; Fri, 25 Nov 2022 02:17:59 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F270B4151D; Fri, 25 Nov 2022 08:17:57 +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 1BCJOt6XlK6X; Fri, 25 Nov 2022 08:17:56 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669360676; bh=IsKFaUlTI/4z7IxqVDnke5TP576fBdChJWAIq+X/odM=; h=Date:Subject:From:To:References:In-Reply-To:From; b=FWTgdHmR4nP63LT4qDu6EIcwG1sn9oSGeOgftUIwvkCW8Y87ZAI7GpvmRwHxe/WmW VodHhlX89hOKWUMMXPYXTgsIiTjQEJvdYloHYZADY65Y45n4pxBHfD2G23kyPdsSDR 2z0vITUE2Jclo32HiZooF6T3eJvRCMQre4zqWadYDg4Y5783p0Fs7wiUg0Lr6k0G98 5Ypx5iC4hqYoKroC8dYdYd0hwNESYnKA0vz8gjmU/8BB+aNuCaxeLVGbBmCSRWVSIF dnlx1+OLt+qvaXbkpyJzts0wtyZ4nLvZziwPbU/ZlDKBhskEUJaAn+Rd0enxWjfYrW 8djrAY154/vaw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Nov 2022 07:17:55 +0000 Message-Id: References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> <20221125012142.22579-30-pierre.langlois@gmx.com> In-Reply-To: <20221125012142.22579-30-pierre.langlois@gmx.com> 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: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org 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=1669360702; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=avVYYKTLsWIsGau4R7JM2YYUKZwQZiufhQRP4y+8bWo=; b=YpOUhe71R988c5e0k69CEQK6EnS4q/P+GnbDQkkxYF76AZJbUicagcbBvQqY08pJj9eomZ UQeakEBt0T9kgeDNVim0Ofo87gWNNUEVPjqJnITxElJFnmTChHeVtvVhlGjVmA1k2u1i6w /INBMuwbOKWNZY6SCYIYgiig+nz4dv6pRgA7DjZtF6X6Rt1JXOhCbO5auzKyNoT71BRb+C 0wPjcjJ4n+P3Lr6kicbbFiIx5gZivIyYk3YspOlT5c/h7qKE9RZg8tbrXuD6o3amE4+m2V W+grLDw+ISI7idJSpb5pM3WUSfdxwLSvBKVp9CMpEXS/712rlPiSXwtqj6+wrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669360702; a=rsa-sha256; cv=none; b=ISVNh5VQ1m5hR3kVv/lTRDiPpkYE7MosfMzEpf+QnedHju9j3NOecT9qro3FcIBe3qzKc6 XOaQR+edNraQg2y9eRGiyk4OH8iTmcQRPPPLFrz6ZxiA1OhzC5dLP23A8cXGfGua0AF0q8 Qjx7rsaXUNHvmsWybxcFVKfgn02OmvFcf5ey0DbK38bQuLmE8KOXuxNrtclfd/kDV8OlQV zF9ThwLbY2V0DqtC+lqvSRd83UEYaAESFNuJ3p8SkmnUUOWNiDdgI2zWyK5BfnHCUEeMS+ rgaO3cMYaYjFQsNZQf1rlhAGLavXHUC0m6kvTXNc6Uy624ryHpaTSB8U32AI1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=FWTgdHmR; 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.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=FWTgdHmR; 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: A7D9710F3A X-Spam-Score: -3.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: kq03wjzo1G+r On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote: > * gnu/packages/tree-sitter.scm (rust-tree-sitter-for-emacs): New variable= . > * gnu/packages/patches/rust-tree-sitter-text-provider-fix.patch: New file= . > * gnu/local.mk (dist_patch_DATA): Register it. > --- a/gnu/packages/tree-sitter.scm > +++ b/gnu/packages/tree-sitter.scm > @@ -196,6 +197,19 @@ (define-public rust-tree-sitter > +;; We need to apply a patch in order to compile the rust bindings agains= t the > +;; emacs tree-sitter module. > +;; See https://github.com/tree-sitter/tree-sitter/pull/1294 > +(define-public rust-tree-sitter-for-emacs > + (package (inherit rust-tree-sitter) > + (source (origin > + (inherit (package-source rust-tree-sitter)) > + (patches (search-patches > + "rust-tree-sitter-text-provider-fix.patch")))) > + ;; Do not show this package in the UI as it's only meant to be used = for > + ;; emacs's tree-sitter module. > + (properties '((hidden? . #t))))) You can use ``hidden-package'', which is a bit nicer than ``properties'' imo: (hidden-package (package (inherit rust-tree-sitter) ...)) -- (