Subject: [bug#77541] [PATCH 07/38] gnu: Add string-view-lite.

From: Nicolas Graves <[email-masked]>
Date: Fri, 4 Apr 2025 21:16:39 +0200

* gnu/packages/cpp.scm (string-view-lite): 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 4c645f0f9d..7d0135044a 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -3795,6 +3795,26 @@ (define-public nativefiledialog-extended
 \"source files\" or \"image files\") where supported.")
     (license license:zlib)))
 
+(define-public string-view-lite
+  (package
+    (name "string-view-lite")
+    (version "1.8.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/martinmoene/string-view-lite")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1mfp3lmqx7ac0545akxd2v05rrapa3byz8q4gb9rqy94pcqbfyc5"))))
+    (build-system cmake-build-system)
+    (home-page "https://github.com/martinmoene/string-view-lite")
+    (synopsis "C++17 string-view for older C++")
+    (description "This package provides a compatibility header-only library
+for C++17 string-view.")
+    (license license:boost1.0)))
+
 (define-public tsl-hopscotch-map
   (package
     (name "tsl-hopscotch-map")
-- 
2.49.0