* [bug#64065] [PATCH] gnu: Add tomlc99.
@ 2023-06-14 12:20 Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-06-20 22:10 ` bug#64065: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Pierre De Jesus DIAZ via Guix-patches via @ 2023-06-14 12:20 UTC (permalink / raw)
To: 64065; +Cc: Jean-Pierre De Jesus DIAZ
* gnu/packages/c.scm (tomlc99): New variable.
Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
---
gnu/packages/c.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index e8bde0133d..9e5b511b98 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2022 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2023 zamfofex <zamfofex@twdb.moe>
+;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -241,6 +242,47 @@ (define-public tcc
;; (if ever) complete. See the RELICENSING file for more information.
(license license:lgpl2.1+))))
+(define-public tomlc99
+ (let ((revision "0")
+ (commit "52e9c039c5418a100605c2db1282590511fa891b"))
+ (package
+ (name "tomlc99")
+ (version (git-version "1.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cktan/tomlc99")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1zrn5mmd1ysxma96jzrq50xqypbs3rhk6dwlj1wcjpjz1a4h9wgg"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:make-flags #~(list (string-append "CC="
+ #$(cc-for-target))
+ (string-append "prefix="
+ #$output))
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure)
+ (replace 'check
+ (lambda* (#:key tests? make-flags
+ #:allow-other-keys)
+ (when tests?
+ (apply invoke
+ `("make" "-C" "unittest"
+ ,@make-flags))
+ (invoke "./unittest/t1")))))))
+ (home-page "https://github.com/cktan/tomlc99")
+ (synopsis "TOML library for C")
+ (description
+ "This library is a C99 implementation to read
+@acronym{TOML, Tom's Obvious Minimal Language} text documents.
+
+This library is compatible with the @url{https://toml.io/en/v1.0.0,v1.0.0}
+specification of the language.")
+ (license license:expat))))
+
(define-public pcc
(package
(name "pcc")
base-commit: b94cbbbce70f59b795526a0ed305facf041e6faa
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#64065: [PATCH] gnu: Add tomlc99.
2023-06-14 12:20 [bug#64065] [PATCH] gnu: Add tomlc99 Jean-Pierre De Jesus DIAZ via Guix-patches via
@ 2023-06-20 22:10 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-06-20 22:10 UTC (permalink / raw)
To: Jean-Pierre De Jesus DIAZ; +Cc: 64065-done
Hi,
Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> skribis:
> * gnu/packages/c.scm (tomlc99): New variable.
>
> Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com>
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-20 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-14 12:20 [bug#64065] [PATCH] gnu: Add tomlc99 Jean-Pierre De Jesus DIAZ via Guix-patches via
2023-06-20 22:10 ` bug#64065: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).