diff options
author | NoƩ Lopez <noelopez@free.fr> | 2024-12-03 23:30:16 +0800 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2024-12-31 10:56:36 +0800 |
commit | e60c15eb7d7a33c9028ad8ad28c76a7c6d0bb9dc (patch) | |
tree | 820b774e761f70abf2d09d966a5c2e40ce9ebc5d | |
parent | c83e7b3b6c124245dbfcfbeb8b7ea5aae81893d5 (diff) |
gnu: Add zig-ini.
* gnu/packages/zig-xyz.scm (zig-ini): New variable.
Modified-by: Hilton Chain <hako@ultrarare.space>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
Change-Id: I22565fccec0a8904557cd1cdcf94426f3d87af04
-rw-r--r-- | gnu/packages/zig-xyz.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index 0c7800c7e2..4cdb3b05ec 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -161,6 +161,53 @@ syntax highlighting and run code snippets to ensure they behave as expected.") (home-page "https://github.com/kristoff-it/zig-doctest") (license license:expat)))) +(define-public zig-ini + ;; No releases. + (let ((commit "e18d36665905c1e7ba0c1ce3e8780076b33e3002") + (revision "0")) + (package + (name "zig-ini") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglibs/ini") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b1688g6kvcrbr8pbl3glv09fpd27p5z2bif8jmn6km6myq5fs1y")) + (modules '((guix build utils))) + (snippet + #~(substitute* "build.zig" + (("addStaticLibrary") "addSharedLibrary") + ;; XXX: This executable links to library in Zig cache, thus + ;; having invalid RUNPATH. + ((".*b.installArtifact.example_c.*") ""))))) + (build-system zig-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda _ + (substitute* "example/example.zig" + (("example.ini" file) + (string-append + (zig-source-install-path #$output) + "/example/" + file)))))))) + (home-page "https://github.com/ziglibs/ini") + (synopsis "INI parser library") + (description + "This package provides an INI parser library with: +@itemize +@item Raw record reading. +@item Leading/trailing whitespace removal. +@item Comments based on @code{;} and @code{#}. +@item C and Zig API. +@end itemize") + (license license:expat)))) + (define-public zig-known-folders (let ((commit "1cceeb70e77dec941a4178160ff6c8d05a74de6f") (revision "0")) |