all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anadon <joshua.r.marshall.1991@gmail.com>
To: 45604@debbugs.gnu.org
Cc: joshua.r.marshall.1991@gmail.com
Subject: [bug#45604] [PATCH 1/1] Added a package definition for the C++17 header only library 'magic-enum'.
Date: Wed, 13 Jan 2021 21:17:11 -0500	[thread overview]
Message-ID: <20210114021711.52857-2-joshua.r.marshall.1991@gmail.com> (raw)
In-Reply-To: <20210114021711.52857-1-joshua.r.marshall.1991@gmail.com>

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





  reply	other threads:[~2021-01-14  2:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14  2:17 [bug#45850] [PATCH 0/1] New package 'magic-enum' Anadon
2021-01-14  2:17 ` Anadon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-14  2:36 [bug#45852] " Anadon
2021-01-14  2:36 ` [bug#45853] [PATCH 1/1] Added a package definition for the C++17 header only library 'magic-enum' Anadon
2021-01-14 11:59   ` [bug#45604] " Leo Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210114021711.52857-2-joshua.r.marshall.1991@gmail.com \
    --to=joshua.r.marshall.1991@gmail.com \
    --cc=45604@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.