GNU bug report logs - #69104
[PATCH] gnu: Add gsl-lite.

Previous Next

Package: guix-patches;

Reported by: "Paul A. Patience" <paul <at> apatience.com>

Date: Tue, 13 Feb 2024 16:09:01 UTC

Severity: normal

Tags: patch

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Paul A. Patience" <paul <at> apatience.com>
To: guix-patches <at> gnu.org
Cc: "Paul A. Patience" <paul <at> apatience.com>
Subject: [PATCH] gnu: Add gsl-lite.
Date: Tue, 13 Feb 2024 16:08:02 +0000
* gnu/packages/cpp.scm (gsl-lite): New variable.

Change-Id: Ieabc719b09a3ef2d7eb89d3bacfdf8e873b2030c
---
 gnu/packages/cpp.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 62a1923571..dd12a02859 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -38,7 +38,7 @@
 ;;; Copyright © 2023 Liliana Marie Prikler <liliana.prikler <at> gmail.com>
 ;;; Copyright © 2023 Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
 ;;; Copyright © 2023 Foundation Devices, Inc. <hello <at> foundationdevices.com>
-;;; Copyright © 2023 Paul A. Patience <paul <at> apatience.com>
+;;; Copyright © 2023-2024 Paul A. Patience <paul <at> apatience.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -274,6 +274,30 @@ (define-public c++-gsl
     (home-page "https://github.com/microsoft/GSL/")
     (license license:expat)))
 
+(define-public gsl-lite
+  (package
+    (name "gsl-lite")
+    (version "0.41.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/gsl-lite/gsl-lite")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0aj2ck2jdiy05f83bknjb9zjvsi766d11fv6flxm0v9ngp3s5svj"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags #~(list "-DGSL_LITE_OPT_BUILD_TESTS=ON")))
+    (home-page "https://github.com/gsl-lite/gsl-lite")
+    (synopsis "Guidelines Support Library for C++98 and later")
+    (description "@i{gsl-lite} is a single-file header-only implementation of
+the C++ Core Guidelines Support Library, originally based on Microsoft GSL and
+adapted for C++98 and C++03.  It is also compatible with C++11, C++14, C++17
+and C++20.")
+    (license license:expat)))
+
 (define-public c2ffi
   (package
     (name "c2ffi")

base-commit: 570ef13a87bb54d3410c431700ba78316a2641e2
-- 
2.41.0






This bug report was last modified 1 year and 124 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.