[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#45731] [PATCH 1/2] Added magic-enum header-only library as a packag
From: |
Anadon |
Subject: |
[bug#45731] [PATCH 1/2] Added magic-enum header-only library as a package. |
Date: |
Fri, 8 Jan 2021 21:40:57 -0500 |
From: Josh Marshall <joshua.r.marshall.1991@gmail.com>
---
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.30.0
- [bug#45604] [PATCH 0/1] Add magic-enum package, Anadon, 2021/01/01
- [bug#45604] [PATCH 0/2] Added magic-enum header-only library as a package., Anadon, 2021/01/08
- [bug#45604] [PATCH 0/2] Added magic-enum header-only library as a package., Leo Prikler, 2021/01/09
- [bug#45604] [PATCH 0/1] New package 'magic-enum', Anadon, 2021/01/13
- [bug#45604] [PATCH] gnu: Add magic-enum., Anadon, 2021/01/19