install the library as well

This commit is contained in:
Lynn Leichtle 2024-09-13 19:42:32 +02:00
parent b46128b4b9
commit 6b046396a2
Signed by: lynn
GPG key ID: 55E797F631DDA03C

View file

@ -5,34 +5,35 @@
#:use-module ((guix licenses) #:prefix license:)) #:use-module ((guix licenses) #:prefix license:))
(define-public zig-bin-0.13 (define-public zig-bin-0.13
(package (package
(name "zig-bin") (name "zig-bin")
(version "0.13.0") (version "0.13.0")
(home-page "https://ziglang.org/") (home-page "https://ziglang.org/")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://ziglang.org/download/0.13.0/zig-linux-x86_64-" version ".tar.xz")) (uri (string-append "https://ziglang.org/download/0.13.0/zig-linux-x86_64-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1sih28hni53cnqbd3ap42vx12p4isrzwzi3vnwr81i5w3vk14lyl")))) "1sih28hni53cnqbd3ap42vx12p4isrzwzi3vnwr81i5w3vk14lyl"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
`(#:install-plan (list '("zig" "bin/zig")) `(#:install-plan '(("zig" "bin/zig")
#:phases ("lib" "lib"))
(modify-phases %standard-phases #:phases
(add-after 'install 'make-executable (modify-phases %standard-phases
(lambda* (#:key outputs #:allow-other-keys) (add-after 'install 'make-executable
(chmod (lambda* (#:key outputs #:allow-other-keys)
(string-append (chmod
(assoc-ref %outputs "out") "/bin/zig") #o555)))))) (string-append
(synopsis "General purpose programming language and toolchain") (assoc-ref %outputs "out") "/bin/zig") #o555))))))
(description "Zig is a general-purpose programming language and (synopsis "General purpose programming language and toolchain")
(description "Zig is a general-purpose programming language and
toolchain. Among other features it provides toolchain. Among other features it provides
@itemize @itemize
@item an Optional type instead of null pointers, @item an Optional type instead of null pointers,
@item manual memory management, @item manual memory management,
@item generic data structures and functions, @item generic data structures and functions,
@item compile-time reflection and compile-time code execution, @item compile-time reflection and compile-time code execution,
@item integration with C using zig as a C compiler, and @item integration with C using zig as acl C compiler, and
@item concurrency via async functions. @item concurrency via async functions.
@end itemize") @end itemize")
(license license:expat))) (license license:expat)))