From unknown Wed Jun 18 23:13:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59688 <59688@debbugs.gnu.org> To: bug#59688 <59688@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add zls Reply-To: bug#59688 <59688@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:13:06 +0000 retitle 59688 [PATCH] gnu: Add zls reassign 59688 guix-patches submitter 59688 M=C3=A1ja Tom=C3=A1=C5=A1ek severity 59688 normal tag 59688 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 29 14:08:15 2022 Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 19:08:15 +0000 Received: from localhost ([127.0.0.1]:55753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p05xm-0005kS-Jw for submit@debbugs.gnu.org; Tue, 29 Nov 2022 14:08:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:44584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p05xl-0005kM-Mv for submit@debbugs.gnu.org; Tue, 29 Nov 2022 14:08:14 -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 1p05xl-0004N9-Hz for guix-patches@gnu.org; Tue, 29 Nov 2022 14:08:13 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p05xi-00084W-LV for guix-patches@gnu.org; Tue, 29 Nov 2022 14:08:13 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 46EAC41539 for ; Tue, 29 Nov 2022 20:08:07 +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 HC6czSN2YrQg for ; Tue, 29 Nov 2022 20:08:05 +0100 (CET) From: =?utf-8?B?TcOhamEgVG9tw6HFoWVr?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669748885; bh=3c1q+9BdS2FgPbMtesK33OtbRkn5J0x8jcjrCo5v45I=; h=From:To:Subject:Date:From; b=dBkMX9Wb8AJB2v05NEcD9MrXYW09ytypsUH9tVgE70CtFjQGt3Znp1Jo0bhS6S5FV f9TutJpWqESGdgaB0DL4TX+VVt6J8Ty75J+YEOOB0e4ztMzq4EXZ1XUbQEUdZK7ZdB POYPYulY5sIC27Y0zRFny7y12OfIIbNXXG1Tj8Ij/ZxF/3uqEonP5MZByUFbu2g4Xi 7uLGAdHvs6kWsESARnBqOlnZX2eLW4fNbJ6LGIDVsoNO3p+ldSqLP8zC/2gd0GIF/n iDFVQLNpk1rPeRa5vLDDcNOEoyktqOoQHtyGWZbjEACuW2xMMLFHMUzE/jKoJXGvpJ akwO2RhlBNQIw== To: guix-patches@gnu.org Subject: [PATCH] gnu: Add zls Date: Tue, 29 Nov 2022 20:08:01 +0100 Message-ID: <87k03da8a6.fsf@disroot.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=178.21.23.139; envelope-from=maya.tomasek@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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Hi, this is a patch that adds the zls - zig language server. It is not currently the most recent version, as the project follows versions of zig itself, which is in guix one version behind. (as zig became self hosted) Kind regards, Maya --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-zls.patch Content-Transfer-Encoding: quoted-printable --- gnu/packages/zig-xyz.scm | 70 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 gnu/packages/zig-xyz.scm diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm new file mode 100644 index 0000000000..ff778003cb --- /dev/null +++ b/gnu/packages/zig-xyz.scm @@ -0,0 +1,70 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2022 Maya Tomasek +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages zig-xyz) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) + #:use-module (gnu packages) + #:use-module (gnu packages zig) + #:use-module (gnu packages python)) + +(define-public zig-zls + (package + (name "zig-zls") + (version "0.9.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zigtools/zls") + (commit version) + (recursive? #t))) + (sha256 + (base32 "1hhs7dz9rpshfd1a7x5swmix2rmh53vsqskh3mzqlrj2lgb3cn= ii")))) + (build-system gnu-build-system) + (inputs (list zig python)) + (arguments + (list + #:modules '((guix build gnu-build-system) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (zig (string-append #$zig "/bin/zig"))) + ;; zig defaults it's cache dir to subdir of $HOME, which i= s not defined in the build environment + (setenv "ZIG_GLOBAL_CACHE_DIR" + (string-append (getcwd) "/zig-cache")) + ;; invoke the install target of the build command + (invoke zig "build" "install" "-Drelease-safe" "--prefix" = out)))) + (delete 'install) + (replace 'check + (lambda _ + (let ((zig (string-append #$zig "/bin/zig"))) + ;; run the test target + (invoke zig "build" "test"))))))) + (synopsis "Zig language server") + (description "Zig Language Server is a language server for the @code{z= ig} programming language.") + (home-page "https://github.com/zigtools/zls") + (license license:expat))) + +zig-zls --=20 2.38.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 06:08:37 2022 Received: (at 59688) by debbugs.gnu.org; 14 Dec 2022 11:08:37 +0000 Received: from localhost ([127.0.0.1]:38362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Pcr-0008Ch-IS for submit@debbugs.gnu.org; Wed, 14 Dec 2022 06:08:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Pcp-0008Cb-SJ for 59688@debbugs.gnu.org; Wed, 14 Dec 2022 06:08:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Pck-0000z4-Jf; Wed, 14 Dec 2022 06:08:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=4jw308VwkNqMgiv9Nk6ElLSwZUY2VB5cSwEXXSuBHv4=; b=aJpddDe4NK4FNZj+hZtP zXDPM8Iq+fAqpuUUoQXsJLsvdSylRYnw9uW2euOOoOF2sLZbmg9j4xsavlIprLScbIqW7T66xUtEf Emm0bLNbhBQcO8h0tOK8iQpBz4oBCnVM1q4cJa0pFdO4vasv+3szPvaabaPhIFrFs8og2TlEbTt1y mEj/Py1NW14hsK04zxADrSv5AatDNpwrRYxYUKwf7ArLRWCUWUlym/BgVVUuhcpLI92Qih5IYy6u6 cF21ldEdwuYIuLmeWkMEDCaV8fRtuyks44wcU3WawSxY9gbXH+m52//DwFEYz9vaY4WW5LiK9jrHH Y05hLytPRqnLRg==; Received: from eduroam-111172.grenet.fr ([130.190.111.172] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Pck-0001gw-7P; Wed, 14 Dec 2022 06:08:30 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?B?TcOhamEgVG9tw6HFoWVr?= Subject: Re: bug#59688: [PATCH] gnu: Add zls References: <87k03da8a6.fsf@disroot.org> Date: Wed, 14 Dec 2022 12:08:28 +0100 In-Reply-To: <87k03da8a6.fsf@disroot.org> (=?utf-8?B?Ik3DoWphIFRvbcOhxaFl?= =?utf-8?B?ayIncw==?= message of "Tue, 29 Nov 2022 20:08:01 +0100") Message-ID: <878rjatf83.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59688 Cc: 59688@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi M=C3=A1ja, M=C3=A1ja Tom=C3=A1=C5=A1ek skribis: > this is a patch that adds the zls - zig language server. It is not curren= tly > the most recent version, as the project follows versions of zig itself, w= hich > is in guix one version behind. (as zig became self hosted) Could you resend the patch to 59688@debbugs.gnu.org using =E2=80=98git send-email=E2=80=99 so that https://qa.guix.gnu.org can pick it up? > --- > gnu/packages/zig-xyz.scm | 70 ++++++++++++++++++++++++++++++++++++++++ Please add the new file to gnu/local.mk. > + (synopsis "Zig language server") > + (description "Zig Language Server is a language server for the @code= {zig} programming language.") Could you expound the description a bit? For instance, by mentioning =E2=80=9CLanguage Server Protocol (LSP)=E2=80=9D so that there=E2=80=99s no= ambiguity as to the kind of =E2=80=9Clanguage server=E2=80=9D we=E2=80=99re talking about? > +zig-zls You can remove this line. Thanks in advance! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 17 06:41:59 2022 Received: (at 59688) by debbugs.gnu.org; 17 Dec 2022 11:41:59 +0000 Received: from localhost ([127.0.0.1]:55413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6VZm-0003Mu-Op for submit@debbugs.gnu.org; Sat, 17 Dec 2022 06:41:59 -0500 Received: from knopi.disroot.org ([178.21.23.139]:46432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6VZh-0003Mo-4r for 59688@debbugs.gnu.org; Sat, 17 Dec 2022 06:41:56 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BE327412FC; Sat, 17 Dec 2022 12:41:51 +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 inCO2TorOwAy; Sat, 17 Dec 2022 12:41:50 +0100 (CET) From: Maya Tomasek DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1671277310; bh=/8y6aubCwGlc4vsS61q+UDn3qJKcXbFmcPaPFdrwiJA=; h=From:To:Cc:Subject:Date; b=Hy7rX1DKohCHYyVqgKBPastBwbSEIEcbHKNUymSZPNL0E006PCVQU+G1Gk0dC6PMp eeyVGwvd9yMUL9PAi64p1MHTJBjQRBAm7cLLPi07qLbVoeDG3ftHjQfg61Mme6Bt5w SC2bHNLg6oLTlbtbBW1a/9Z5uKFWhh5e5vIk1VRtZtppcCNXv+GgftskTyeJzOBbvl tvNNYoNvKCI9XA45xANTNU2SXUafQi21fujVqYvy8fg9c7jun4vzfWigCLIOVD+1Dz hFlxknFZTwEjnS6E1AeetqDcpfFxzl0waKnLYE7bzIbJsD0gxOKEJ8a+412RLljDMd 11WTsXu4FOu0A== To: 59688@debbugs.gnu.org Subject: [PATCH] gnu: Add zls Date: Sat, 17 Dec 2022 12:41:48 +0100 Message-Id: <20221217114148.21781-1-maya.tomasek@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59688 Cc: Maya Tomasek X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: Maya Tomasek --- gnu/local.mk | 1 + gnu/packages/zig-xyz.scm | 68 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 gnu/packages/zig-xyz.scm diff --git a/gnu/local.mk b/gnu/local.mk index 9120d7a263..ad47fcd216 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -641,6 +641,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/xorg.scm \ %D%/packages/xfce.scm \ %D%/packages/zig.scm \ + %D%/packages/zig-xyz.scm \ %D%/packages/zile.scm \ %D%/packages/zwave.scm \ \ diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm new file mode 100644 index 0000000000..131d200ec7 --- /dev/null +++ b/gnu/packages/zig-xyz.scm @@ -0,0 +1,68 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Maya Tomasek +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages zig-xyz) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) + #:use-module (gnu packages) + #:use-module (gnu packages zig) + #:use-module (gnu packages python)) + +(define-public zig-zls + (package + (name "zig-zls") + (version "0.9.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zigtools/zls") + (commit version) + (recursive? #t))) + (sha256 + (base32 "1hhs7dz9rpshfd1a7x5swmix2rmh53vsqskh3mzqlrj2lgb3cnii")))) + (build-system gnu-build-system) + (inputs (list zig python)) + (arguments + (list + #:modules '((guix build gnu-build-system) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (zig (string-append #$zig "/bin/zig"))) + ;; zig defaults it's cache dir to subdir of $HOME, which is not defined in the build environment + (setenv "ZIG_GLOBAL_CACHE_DIR" + (string-append (getcwd) "/zig-cache")) + ;; invoke the install target of the build command + (invoke zig "build" "install" "-Drelease-safe" "--prefix" out)))) + (delete 'install) + (replace 'check + (lambda _ + (let ((zig (string-append #$zig "/bin/zig"))) + ;; run the test target + (invoke zig "build" "test"))))))) + (synopsis "Zig language server") + (description "Zig Language Server is a language server implementing the Language Server Protocol (LSP) for the @code{zig} programming language.") + (home-page "https://github.com/zigtools/zls") + (license license:expat))) -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 05 16:37:37 2023 Received: (at 59688-done) by debbugs.gnu.org; 5 Jan 2023 21:37:37 +0000 Received: from localhost ([127.0.0.1]:53151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXvd-00020X-DS for submit@debbugs.gnu.org; Thu, 05 Jan 2023 16:37:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXva-00020K-KN for 59688-done@debbugs.gnu.org; Thu, 05 Jan 2023 16:37:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDXvV-00076n-AR; Thu, 05 Jan 2023 16:37:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=sDpibf44Z65Ds1PnbANobiefYwhfXN0F3enVTOIh/y4=; b=JYgMd4PCqXmjplzibszp tY2uQofM+13a74de+F1NdPtX5l9FedjPeMEnRtRzGZlstbWHirv+mtSWcjrpK5u6gunMh2vFvROoe f7Dob8O230qOGjOFVnlK1D4uISV9QHpiCUAA/vx2CfXupJpirClShJL8Ag8X5eua1OqadTYrp5BuO WkkjZuJDj36GGTn8mric4ZBTML0+WSR5b5QIuCX8L5ZEx1nIRCPXs1vcnNBUCLtRnjChPeX5BMHmo TwKQQQeoHfeBjqCPEZz7mpXmhjaspbHDvnCx9QgmDf+ZFtrxV0r/rDQGTDl/u6r93hZQXg0JxRGqb Z+CCWR2oPkzDmA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDXvU-00036E-NG; Thu, 05 Jan 2023 16:37:28 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maya Tomasek Subject: Re: bug#59688: [PATCH] gnu: Add zls References: <87k03da8a6.fsf@disroot.org> <20221217114148.21781-1-maya.tomasek@disroot.org> Date: Thu, 05 Jan 2023 22:37:26 +0100 In-Reply-To: <20221217114148.21781-1-maya.tomasek@disroot.org> (Maya Tomasek's message of "Sat, 17 Dec 2022 12:41:48 +0100") Message-ID: <87a62w3bop.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59688-done Cc: Maya Tomasek , 59688-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Maya Tomasek skribis: > From: Maya Tomasek > > --- > gnu/local.mk | 1 + > gnu/packages/zig-xyz.scm | 68 ++++++++++++++++++++++++++++++++++++++++ Finally applied with a commit log as well as simplifications and cosmetic changes to address the =E2=80=98guix lint=E2=80=99 warnings (see b= elow). Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index 131d200ec7..3812aa0125 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -36,33 +36,30 @@ (define-public zig-zls (url "https://github.com/zigtools/zls") (commit version) (recursive? #t))) + (file-name (git-file-name name version)) (sha256 - (base32 "1hhs7dz9rpshfd1a7x5swmix2rmh53vsqskh3mzqlrj2lgb3cnii")))) + (base32 + "1hhs7dz9rpshfd1a7x5swmix2rmh53vsqskh3mzqlrj2lgb3cnii")))) (build-system gnu-build-system) (inputs (list zig python)) (arguments - (list - #:modules '((guix build gnu-build-system) - (guix build utils)) - #:phases - #~(modify-phases %standard-phases - (delete 'configure) - (replace 'build - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (zig (string-append #$zig "/bin/zig"))) - ;; zig defaults it's cache dir to subdir of $HOME, which is not defined in the build environment - (setenv "ZIG_GLOBAL_CACHE_DIR" - (string-append (getcwd) "/zig-cache")) - ;; invoke the install target of the build command - (invoke zig "build" "install" "-Drelease-safe" "--prefix" out)))) - (delete 'install) - (replace 'check - (lambda _ - (let ((zig (string-append #$zig "/bin/zig"))) - ;; run the test target - (invoke zig "build" "test"))))))) + (list #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "ZIG_GLOBAL_CACHE_DIR" + (string-append (getcwd) "/zig-cache")) + (invoke "zig" "build" "install" + "-Drelease-safe" "--prefix" out)))) + (delete 'install) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "zig" "build" "test"))))))) (synopsis "Zig language server") - (description "Zig Language Server is a language server implementing the Language Server Protocol (LSP) for the @code{zig} programming language.") + (description + "Zig Language Server is a language server implementing the @acronym{LSP, +Language Server Protocol} for the Zig programming language.") (home-page "https://github.com/zigtools/zls") (license license:expat))) --=-=-=-- From unknown Wed Jun 18 23:13:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Feb 2023 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator