From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0EVrJBcY+V8dTQAA0tVLHw (envelope-from ) for ; Sat, 09 Jan 2021 02:42:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGoyIBcY+V81egAAB5/wlQ (envelope-from ) for ; Sat, 09 Jan 2021 02:42:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 298199403C9 for ; Sat, 9 Jan 2021 02:42:31 +0000 (UTC) Received: from localhost ([::1]:43168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ky4D0-0002xj-5V for larch@yhetil.org; Fri, 08 Jan 2021 21:42:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky4CZ-0002x4-0X for guix-patches@gnu.org; Fri, 08 Jan 2021 21:42:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ky4CY-0006Hd-PS for guix-patches@gnu.org; Fri, 08 Jan 2021 21:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ky4CY-0003wt-NE for guix-patches@gnu.org; Fri, 08 Jan 2021 21:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45731] [PATCH 1/2] Added magic-enum header-only library as a package. Resent-From: Anadon Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 09 Jan 2021 02:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45731 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45731@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161016007415068 (code B ref -1); Sat, 09 Jan 2021 02:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2021 02:41:14 +0000 Received: from localhost ([127.0.0.1]:51049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ky4Bl-0003uy-QE for submit@debbugs.gnu.org; Fri, 08 Jan 2021 21:41:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:37300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ky4Bk-0003uq-0D for submit@debbugs.gnu.org; Fri, 08 Jan 2021 21:41:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ky4Bj-0002rF-P6 for guix-patches@gnu.org; Fri, 08 Jan 2021 21:41:11 -0500 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]:42795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ky4Bi-000623-9E for guix-patches@gnu.org; Fri, 08 Jan 2021 21:41:11 -0500 Received: by mail-io1-xd33.google.com with SMTP id q137so11824916iod.9 for ; Fri, 08 Jan 2021 18:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YR4V0dY9gVJ1rgpsEML8rDuQHgp/xU8Xkr47X5/coTE=; b=fe6ofN1F/yTmwLDo2rNSlcuBDRX/Bs+wvHcuVWKucjGnncnFFsLRr/YyBTmXNTJiJ7 NveLB4kfRAXZMyofs5H5I4MMQF55S9dSrabQCfAw5vPSOiQUHe7D9MEA31C9gvFIielT GCVCQkgSAwbfq7OV4cMcjcsjjKsFHt/Vrf/gG2HlZ4ft12TIPp1aiIfjdq7stuGy5Whq RSoA2wc2dgIaOIUnG3VsyBgIdxMMK225iZxpNoBFD3+hORQsqRzihTsNKbDDJJIPeupC qKtlAnNpSSy8Gj6GoYyVYU92ci4w96eUHmExjJ6CyjmCfOifpdO7Kt3V8VEAOpXh4mzA rLWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YR4V0dY9gVJ1rgpsEML8rDuQHgp/xU8Xkr47X5/coTE=; b=IIU7kEq5ZjC1w2nZEpAWd9y2jMeErqhP8UVF8xM03iiXds9e1C2C/I5AaV349EkV4j HtQkzxOZGVJdyU25dtVCe+hgxQwt18xevo4NJV1ocrFHWfKUK84oI7fvm+9vv3jRD0jC PdqM9RcTLxrTh3v2NvDMT5iOMLeH4hLPTR26vkZyez1izanrHF3Vvw9VSEKzFd+Kfxfr T3G71vqWYXkIWEww6rhvYPvHQPCmKcEAiYF/O/iGv4sigHGHZfqJnlsW/19uTdLQTAY6 ooUGDt+8MlLGHiUDD80LZbxqmTAhJWe0hAQ+WR808JhvQII+RrnEqbyFlbdgSKleWWcS OMoA== X-Gm-Message-State: AOAM5326KyYc/SDkiFGfISgnDGUmUVQLJdBkXtfPUFZNfgm2k9iJsOJt r/+fzTUtVoM7RmU7KvNntHXQ8WvvU135eQ== X-Google-Smtp-Source: ABdhPJydXsC2g2XJYVGZWZ31qLJgALAuWeP0nUWfMZJxWh3V0vfj590T8FOeAVw14Ir9Yb+rIWvNNA== X-Received: by 2002:a02:b607:: with SMTP id h7mr6140336jam.120.1610160068965; Fri, 08 Jan 2021 18:41:08 -0800 (PST) Received: from localhost.localdomain (c-71-235-50-202.hsd1.ct.comcast.net. [71.235.50.202]) by smtp.gmail.com with ESMTPSA id b18sm8170513iln.46.2021.01.08.18.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 18:41:08 -0800 (PST) From: Anadon Date: Fri, 8 Jan 2021 21:40:57 -0500 Message-Id: <20210109024058.68902-2-joshua.r.marshall.1991@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210109024058.68902-1-joshua.r.marshall.1991@gmail.com> References: <20210109024058.68902-1-joshua.r.marshall.1991@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d33; envelope-from=joshua.r.marshall.1991@gmail.com; helo=mail-io1-xd33.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45604@debbugs.gnu.org, Josh Marshall Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.75 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=fe6ofN1F; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 298199403C9 X-Spam-Score: 2.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: PApi9NorIPro From: Josh Marshall --- 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