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

Message ID 20250404191717.32747-7-ngraves@ngraves.fr
State New
Headers
Series [bug#77541,01/38] gnu: Add clipper2. |

Commit Message

Nicolas Graves April 4, 2025, 7:16 p.m. UTC
  * gnu/packages/cpp.scm (string-view-lite): New variable.
---
 gnu/packages/cpp.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
  

Patch

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")