guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

71/72: gnu: Add zig-zls-0.12.


From: guix-commits
Subject: 71/72: gnu: Add zig-zls-0.12.
Date: Thu, 21 Nov 2024 07:19:53 -0500 (EST)

hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit e61fac30412c7c38e08b2ba1833929c32a318fa8
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Wed Nov 20 09:47:43 2024 +0800

    gnu: Add zig-zls-0.12.
    
    * gnu/packages/zig-xyz.scm (zig-zls-0.12): New variable.
    
    Change-Id: I4fe7ef482954d6d3cbd319735aab28cae9624c5d
---
 gnu/packages/zig-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index b8594cecb4..64e13e8388 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -272,4 +272,35 @@ Language Server Protocol} for the Zig programming 
language.")
     (home-page "https://github.com/zigtools/zls";)
     (license license:expat)))
 
+(define-public zig-zls-0.12
+  (package
+    (inherit zig-zls-0.10)
+    (name "zig-zls")
+    (version "0.12.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/zigtools/zls";)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ini1ifa9b0v2ika3sqsiiv2p7v9npfslss45280yxwn2pjqmn7n"))))
+    (build-system zig-build-system)
+    (inputs (list zig-0.12))
+    (arguments
+     (let ((version-data-path
+            #~(string-append "-Dversion_data_path="
+                             #+(package-source (this-package-input "zig"))
+                             "/doc/langref.html.in")))
+       (list #:zig (this-package-input "zig")
+             #:zig-release-type "safe"
+             #:zig-build-flags
+             #~(list #$version-data-path)
+             #:zig-test-flags
+             #~(list #$version-data-path)
+             #:zig-inputs
+             `(("known_folders" ,zig-known-folders)
+               ("diffz" ,zig-diffz)))))))
+
 (define-public zig-zls zig-zls-0.10)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]