summaryrefslogtreecommitdiff
path: root/gnu/packages/zig-xyz.scm
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2024-11-20 09:47:43 +0800
committerHilton Chain <hako@ultrarare.space>2024-12-31 18:55:01 +0800
commit974e39ac2b10c79f6d7eb8a6441804174a132f5b (patch)
treedd2281227b46424aa6e238f90da89a38a07b0f8c /gnu/packages/zig-xyz.scm
parent2bb1c0a385f325e8d3d579d803d1894f739eb8ae (diff)
gnu: Add zig-zls-0.12.
* gnu/packages/zig-xyz.scm (zig-zls-0.12): New variable. Change-Id: I4fe7ef482954d6d3cbd319735aab28cae9624c5d
Diffstat (limited to 'gnu/packages/zig-xyz.scm')
-rw-r--r--gnu/packages/zig-xyz.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 4ce8e87961..2e69d1deba 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -330,4 +330,40 @@ 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"))
+ (snippet
+ (rename-zig-dependencies
+ '(("diffz" . "zig-diffz")
+ ("known_folders" . "zig-known-folders"))))))
+ (build-system zig-build-system)
+ (arguments
+ (let ((version-data-path
+ #~(string-append
+ "-Dversion_data_path="
+ #+(package-source (this-package-native-input "zig"))
+ "/doc/langref.html.in")))
+ (list #:zig (this-package-native-input "zig")
+ #:install-source? #f
+ #:zig-release-type "safe"
+ #:zig-build-flags
+ #~(list #$version-data-path "-Dpie")
+ #:zig-test-flags
+ #~(list #$version-data-path))))
+ (inputs (list zig-diffz zig-known-folders))
+ (native-inputs (list zig-0.12))))
+
(define-public zig-zls zig-zls-0.10)