From 3d35f07e892bcdcbdf40a9b6ab30a4840c336c17 Mon Sep 17 00:00:00 2001
From: Greg Hogan <
code@greghogan.com>
Date: Fri, 11 Sep 2020 15:59:22 +0000
Subject: [PATCH] gnu: Add cxxopts.
* gnu/packages/cpp.scm (cxxopts): New variable.
---
gnu/packages/cpp.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 32b6dad497..b8885961d9 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -13,6 +13,7 @@
;;; Copyright © 2020 Vinicius Monego <
monego@posteo.net>
;;; Copyright © 2020 Marius Bakke <
marius@gnu.org>
;;; Copyright © 2020 Michael Rohleder <
mike@rohleder.de>
+;;; Copyright © 2020 Greg Hogan <
code@greghogan.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -616,3 +617,22 @@ Google's C++ code base.")
a zero-dependency C++ header-only parser combinator library for creating
parsers according to a Parsing _expression_ Grammar (PEG).")
(license license:expat)))
+
+(define-public cxxopts
+ (package
+ (name "cxxopts")
+ (version "2.2.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "
https://github.com/jarro2783/cxxopts/archive"
+ "/v" version ".tar.gz"))
+ (sha256
+ (base32
+ "10cn74137w16r671kabqwcn19p9qrq2729znswa9nr3xj74a6jlq"))))
+ (build-system cmake-build-system)
+ (synopsis "Lightweight C++ command line option parser")
+ (description
+ "A lightweight header-only C++ option parser library, supporting the
+standard GNU style syntax for options.")
+ (home-page "
https://github.com/jarro2783/cxxopts/wiki")
+ (license license:expat)))
--
2.28.0