diff --git a/artoria/packages/zig.scm b/artoria/packages/zig.scm index 07bd5c2..16c5e2f 100644 --- a/artoria/packages/zig.scm +++ b/artoria/packages/zig.scm @@ -1,33 +1,44 @@ (define-module (artoria packages zig) - #:use-module (guix packages) - #:use-module (guix download) + #:use-module (gnu packages compression) + #:use-module (gnu packages llvm) + #:use-module (gnu packages) + #:use-module (guix build utils) + #:use-module (guix build-system cmake) #:use-module (guix build-system copy) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix packages) + #:use-module (guix search-paths) + #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:)) (define-public zig-bin-next (package - (name "zig-bin-next") - (version "0.14.0-dev.1550+4fba7336a") - (home-page "https://ziglang.org/") - (source (origin - (method url-fetch) - (uri (string-append "https://ziglang.org/download/0.13.0/zig-linux-x86_64-" version ".tar.xz")) - (sha256 - (base32 - "0f71b9l9i1si4v44davjjniif5yxfrra048gqqqicvj37gp4hdm2")))) - (build-system copy-build-system) - (arguments - `(#:install-plan '(("zig" "bin/zig") - ("lib" "lib")) - #:phases - (modify-phases %standard-phases - (add-after 'install 'make-executable - (lambda* (#:key outputs #:allow-other-keys) - (chmod - (string-append - (assoc-ref %outputs "out") "/bin/zig") #o555)))))) - (synopsis "General purpose programming language and toolchain") - (description "Zig is a general-purpose programming language and + (name "zig-bin-next") + (version "0.14.0-dev.1550+4fba7336a") + (home-page "https://ziglang.org/") + (source (origin + (method url-fetch) + (uri (string-append "https://ziglang.org/download/0.13.0/zig-linux-x86_64-" version ".tar.xz")) + (sha256 + (base32 + "0f71b9l9i1si4v44davjjniif5yxfrra048gqqqicvj37gp4hdm2")))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("zig" "bin/zig") + ("lib" "lib")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'make-executable + (lambda* (#:key outputs #:allow-other-keys) + (chmod + (string-append + (assoc-ref %outputs "out") "/bin/zig") #o555)))))) + (native-search-paths %gcc-search-paths) + (synopsis "General purpose programming language and toolchain") + (description "Zig is a general-purpose programming language and toolchain. Among other features it provides @itemize @item an Optional type instead of null pointers, @@ -37,39 +48,5 @@ toolchain. Among other features it provides @item integration with C using zig as acl C compiler, and @item concurrency via async functions. @end itemize") - (license license:expat))) + (license license:expat))) -(define-public zig-bin-0.13 - (package - (name "zig-bin") - (version "0.13.0") - (home-page "https://ziglang.org/") - (source (origin - (method url-fetch) - (uri (string-append "https://ziglang.org/download/0.13.0/zig-linux-x86_64-" version ".tar.xz")) - (sha256 - (base32 - "1sih28hni53cnqbd3ap42vx12p4isrzwzi3vnwr81i5w3vk14lyl")))) - (build-system copy-build-system) - (arguments - `(#:install-plan '(("zig" "bin/zig") - ("lib" "lib")) - #:phases - (modify-phases %standard-phases - (add-after 'install 'make-executable - (lambda* (#:key outputs #:allow-other-keys) - (chmod - (string-append - (assoc-ref %outputs "out") "/bin/zig") #o555)))))) - (synopsis "General purpose programming language and toolchain") - (description "Zig is a general-purpose programming language and -toolchain. Among other features it provides -@itemize -@item an Optional type instead of null pointers, -@item manual memory management, -@item generic data structures and functions, -@item compile-time reflection and compile-time code execution, -@item integration with C using zig as acl C compiler, and -@item concurrency via async functions. -@end itemize") - (license license:expat)))