* [bug#45850] [PATCH 0/1] New package 'magic-enum'
@ 2021-01-14 2:17 Anadon
2021-01-14 2:17 ` [bug#45604] [PATCH 1/1] Added a package definition for the C++17 header only library 'magic-enum' Anadon
0 siblings, 1 reply; 2+ messages in thread
From: Anadon @ 2021-01-14 2:17 UTC (permalink / raw)
To: 45850; +Cc: 45604, Anadon
Added a simple package definition for the C++17 header only library
'magic-enum'.
Anadon (1):
Added a package definition for the C++17 header only library
'magic-enum'.
gnu/packages/cpp.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [bug#45604] [PATCH 1/1] Added a package definition for the C++17 header only library 'magic-enum'.
2021-01-14 2:17 [bug#45850] [PATCH 0/1] New package 'magic-enum' Anadon
@ 2021-01-14 2:17 ` Anadon
0 siblings, 0 replies; 2+ messages in thread
From: Anadon @ 2021-01-14 2:17 UTC (permalink / raw)
To: 45604; +Cc: joshua.r.marshall.1991
gnu/packages/cpp.scm: Added the package definition.
---
gnu/packages/cpp.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 00e006928e..ff10a4247b 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -807,3 +807,27 @@ code will be mixed in with the actual programming logic. This implementation
provides a number of utilities to make coding with expected cleaner.")
(home-page "https://tl.tartanllama.xyz/")
(license license:cc0)))
+
+(define-public magic-enum
+ (package
+ (name "magic-enum")
+ (version "0.7.2")
+ (home-page "https://github.com/Neargye/magic_enum")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "0fmkyh1srkz2bx68agfa30sankg1ig1f95xqp8sp9wj3p9qilsv2"))
+ (modules '((guix build utils)))))
+ (build-system cmake-build-system)
+
+ (inputs
+ `(("gcc" ,gcc-10)))
+ (synopsis "Header-only C++17 library for reflection for enums")
+ (description "Static reflection for enums (to string, from string,
+iteration) for modern C++, work with any enum type without any macro or
+boilerplate code")
+ (license license:expat)))
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-14 2:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 2:17 [bug#45850] [PATCH 0/1] New package 'magic-enum' Anadon
2021-01-14 2:17 ` [bug#45604] [PATCH 1/1] Added a package definition for the C++17 header only library 'magic-enum' Anadon
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).