mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: Add zig-zls-0.14.
* gnu/packages/zig-xyz.scm (zig-zls-0.14): New variable. Change-Id: I83611bdc850a4f51b6d412595b7ff5afe6464bf9 Signed-off-by: Hilton Chain <hako@ultrarare.space> Modified-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
parent
69b9d96400
commit
265d4f33dc
1 changed files with 34 additions and 0 deletions
|
|
@ -555,4 +555,38 @@ Language Server Protocol} for the Zig programming language.")
|
|||
(modify-inputs (package-native-inputs base)
|
||||
(replace "zig" zig-0.13))))))
|
||||
|
||||
(define-public zig-zls-0.14
|
||||
(let ((base zig-zls-0.13))
|
||||
(package
|
||||
(inherit base)
|
||||
(name "zig-zls")
|
||||
(version "0.14.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
|
||||
"1al4ry22y56v1jbph3vb6la2ln8dxc8hb3g7byng6yf8czx2g4q3"))
|
||||
(snippet
|
||||
(rename-zig-dependencies
|
||||
'(("diffz" . "zig-diffz")
|
||||
("known_folders" . "zig-known-folders")
|
||||
("lsp-codegen" . "zig-lsp-codegen"))))))
|
||||
(arguments
|
||||
(list #:zig (this-package-native-input "zig")
|
||||
#:install-source? #f
|
||||
#:zig-release-type "safe"
|
||||
#:zig-build-flags ''("-Dpie")))
|
||||
(native-inputs
|
||||
(modify-inputs (package-native-inputs base)
|
||||
(replace "zig" zig-0.14)))
|
||||
(inputs
|
||||
(modify-inputs (package-inputs base)
|
||||
(prepend zig-lsp-codegen)
|
||||
(replace "zig-diffz" zig-diffz-for-zig-zls-0.14)
|
||||
(replace "zig-known-folders" zig-known-folders-for-zig-0.14))))))
|
||||
|
||||
(define-public zig-zls zig-zls-0.13)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue