unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#45730] [PATCH 0/2] Added magic-enum header-only library as a package.
@ 2021-01-09  2:40 Anadon
  2021-01-09  2:40 ` [bug#45731] [PATCH 1/2] " Anadon
  2021-01-09  2:40 ` [bug#45604] [PATCH 2/2] Made changes Leo on the ML suggested Anadon
  0 siblings, 2 replies; 3+ messages in thread
From: Anadon @ 2021-01-09  2:40 UTC (permalink / raw)
  To: 45730; +Cc: 45604, Anadon

Added magic-enum header-only library as a package.

Anadon (1):
  Made changes Leo on the ML suggested.

Josh Marshall (1):
  Added magic-enum header-only library as a package.

 gnu/packages/cpp.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

-- 
2.30.0





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#45731] [PATCH 1/2] Added magic-enum header-only library as a package.
  2021-01-09  2:40 [bug#45730] [PATCH 0/2] Added magic-enum header-only library as a package Anadon
@ 2021-01-09  2:40 ` Anadon
  2021-01-09  2:40 ` [bug#45604] [PATCH 2/2] Made changes Leo on the ML suggested Anadon
  1 sibling, 0 replies; 3+ messages in thread
From: Anadon @ 2021-01-09  2:40 UTC (permalink / raw)
  To: 45731; +Cc: 45604, Josh Marshall

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#45604] [PATCH 2/2] Made changes Leo on the ML suggested.
  2021-01-09  2:40 [bug#45730] [PATCH 0/2] Added magic-enum header-only library as a package Anadon
  2021-01-09  2:40 ` [bug#45731] [PATCH 1/2] " Anadon
@ 2021-01-09  2:40 ` Anadon
  1 sibling, 0 replies; 3+ messages in thread
From: Anadon @ 2021-01-09  2:40 UTC (permalink / raw)
  To: 45604; +Cc: joshua.r.marshall.1991

---
 gnu/packages/cpp.scm | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index ff10a4247b..487639c879 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -823,11 +823,9 @@ provides a number of utilities to make coding with expected cleaner.")
                   "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")
+      (native-inputs
+       `(("gcc" ,gcc-9)))
+      (synopsis "Header-only C++17 library for reflection on enums")
+      (description "C++17 static reflection for enums, allowing functions like
+ to string, from string, and iteration.")
       (license license:expat)))
-- 
2.30.0





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-09  2:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-09  2:40 [bug#45730] [PATCH 0/2] Added magic-enum header-only library as a package Anadon
2021-01-09  2:40 ` [bug#45731] [PATCH 1/2] " Anadon
2021-01-09  2:40 ` [bug#45604] [PATCH 2/2] Made changes Leo on the ML suggested Anadon

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git