unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [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	[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

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