From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id itCMC+pigGMNYQEAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 07:38:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cCnBCepigGOggwEAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 07:38:34 +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 C782B322C2 for ; Fri, 25 Nov 2022 07:38:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oySLo-0003iz-Bw; Fri, 25 Nov 2022 01:38:16 -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 1oySLh-0003hR-I8 for guix-patches@gnu.org; Fri, 25 Nov 2022 01:38:09 -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 1oySLb-0004rX-Mt for guix-patches@gnu.org; Fri, 25 Nov 2022 01:38:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oySLa-0002YG-IH for guix-patches@gnu.org; Fri, 25 Nov 2022 01:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v7 01/32] gnu: tree-sitter: Move to its own module. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Nov 2022 06:38:02 +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.16693582399758 (code B ref 49946); Fri, 25 Nov 2022 06:38:02 +0000 Received: (at 49946) by debbugs.gnu.org; 25 Nov 2022 06:37:19 +0000 Received: from localhost ([127.0.0.1]:33123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySKt-0002XK-3L for submit@debbugs.gnu.org; Fri, 25 Nov 2022 01:37:19 -0500 Received: from knopi.disroot.org ([178.21.23.139]:53714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oySKq-0002XA-Lr for 49946@debbugs.gnu.org; Fri, 25 Nov 2022 01:37:17 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0FB99414E5; Fri, 25 Nov 2022 07:37:15 +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 GGo6zbib87sP; Fri, 25 Nov 2022 07:37:13 +0100 (CET) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669358233; bh=ZkrRJY68T9MMzZUEKA/ahxjxFHqbQnKHlPM0aEWhQvc=; h=Date:Subject:From:To:References:In-Reply-To:From; b=JRlE/iha1tXbmP1IWE5/5umsIS1kIXQ+GhsqKqhQIsnVuGUf/zr1lEatqyLth1lxV cXVXRr1mcW1OXNAFRHlePTFA74Fm/5rFi+no1xpKP567qxfE8I3dRHfXKCuFG8vfg/ jJkDF6Jq8F/Ul7icrNbSVAVOtKUQEeL/OUx8yXfwTmpFLFwA8Fjk5eCggoCe1syZmD eHZ72vLmzWjrZDFdgavODd7SBXp2e9mqLo60po5xUn4WQkPeWWd7Q0JCh0mkZU/pl0 wbDmwBI0xJyrOCe5PN82n/rihQYH1RD0VLo1mlIonXUlkDfIQHAsQmDOiGUSLu1XgC xnoKtg+Nh6Thw== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Nov 2022 06:37:13 +0000 Message-Id: References: <87mtfi63ut.fsf@gmx.com> <20221125012142.22579-1-pierre.langlois@gmx.com> <20221125012142.22579-2-pierre.langlois@gmx.com> In-Reply-To: <20221125012142.22579-2-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=1669358314; 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=x1MoZjfzGM7r6Pt3GmhtrXc5L0Be+qUj2LGD/9CiN9I=; b=bZGKCwjZMhXVFOi9867p7OMbx1Y13tg5git7We3iCqHNvmit07Uyl3HI6zC6GLf+m4zyiv 40UzqV8bZ2AKF9K5/tR1IqaIEQA50eYTvqpIIXZ69GAJ3fjMJ+7zp1ttAmnmQU3Qylxs+6 xqk7rBdT7tZQ1t+aJroN4SxqqqU6NUklSUtXmNARLTFirtxf/bVKL98Q9hASowtiVDjRyh YKs3SGS57ekOouA5a45ieO7yP2apWvqmpCEvBgMZKYyxCyHTEH6fkNHFzHiQuTKr4/4keU S33yJ4+9cHpoI0kUm/VL9HrI1U6OSDs/gVhajLJ1R+DuCRGCHQiDx1pw7Gzp2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669358314; a=rsa-sha256; cv=none; b=CVt1hX22DO0bcQrDeLoRzx//NW1yct/DIEla67C7g81czdzpmOFzI+dDO+9sKkysS/xs83 3u2AEvFhPu2UMW4eKeLSXU9tE4DGTBsanBHMF0LiX38HfWUa71ndWJdk+XoTcuyHbAuCyp TnxyoO2JpxHeeFtcFC73239+fFZqjBBCzntl4nSNt0Y0RwoWWnJZfRTBQNKuuQNpdMcmU9 OF6nrN6mZTsks9F9b6KMvoLOzNhqVr9FG+LJN/+/Ze9ACXFqVcFKyBuJ8yImGVc7EXtEiE 7im3sVgLVKi1G0j2hgggrC0DE8oU5KHY2KF3a0+XkGVlxfsqrOaerxFVsLKq5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="JRlE/iha"; 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.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="JRlE/iha"; 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: C782B322C2 X-Spam-Score: -3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y935XSZ+t1SC Heya, On Fri Nov 25, 2022 at 1:21 AM GMT, Pierre Langlois wrote: > * gnu/packages/text-editors.scm (tree-sitter): Move to ... > * gnu/packages/tree-sitter.scm: ... here, a new module. > * gnu/packages/vim.scm: Use (gnu packages tree-sitter). > * gnu/local.mk (GNU_SYSTEM_MODULES): Register tree-sitter.scm new module. > --- /dev/null > +++ b/gnu/packages/tree-sitter.scm > @@ -0,0 +1,78 @@ > +(define-module (gnu packages tree-sitter) > + #:use-module (guix gexp) > + #:use-module ((guix licenses) #:prefix license:) > + #:use-module (guix build-system gnu) > + #:use-module (guix git-download) > + #:use-module (guix packages) > + #:use-module (guix utils) > + #:use-module (gnu packages icu4c)) Please sort these alphabetically. > +(define-public tree-sitter > + (package > + (name "tree-sitter") > + (version "0.20.6") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/tree-sitter/tree-sitter") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1z20518snyg0zp75qgs5bxmzjqws4dd19vnp6sya494za3qp5b6d")) > + (modules '((guix build utils))) > + (snippet '(begin Please change it to use a gexp: ``(snippet #~(begin ...))''. > + ;; Remove bundled ICU parts > + (delete-file-recursively "lib/src/unicode") > + #t)))) This #T is now unnecessary. > + (arguments > + (list #:phases > + '(modify-phases %standard-phases > + (delete 'configure)) Please use a gexp here, too. > + #:make-flags > + #~(list (string-append "PREFIX=3D" > + #$output) > + (string-append "CC=3D" > + #$(cc-for-target))))) Maybe modify the indentation here a little. (string-append "PREFIX=3D" #$output) (string-append "CC=3D" #$(cc-for-target)) > + > +This package includes the @code{libtree-sitter} runtime library. > +") Please remove the newline at the end of the description. -- (