guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f8284ab963c8fce9a8b0fafc381b633e57f5c828
Author: Arun Isaac <[email protected]>
AuthorDate: Sun Feb 8 20:37:49 2026 +0000

    gnu: Add go-github-com-blevesearch-mmap-go.
    
    * gnu/packages/golang-xyz.scm (go-github-com-blevesearch-mmap-go): New
    variable.
    
    Change-Id: Ic8e088f10a46f76308157007f7ca15bf49c2033f
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/golang-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index a486106ceb..c2280414f1 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2020 Oleg Pykhalov <[email protected]>
 ;;; Copyright © 2020 Ryan Prior <[email protected]>
 ;;; Copyright © 2020, 2021 raingloom <[email protected]>
-;;; Copyright © 2021 Arun Isaac <[email protected]>
+;;; Copyright © 2021, 2026 Arun Isaac <[email protected]>
 ;;; Copyright © 2021 Collin J. Doering <[email protected]>
 ;;; Copyright © 2021 Guillaume Le Vaillant <[email protected]>
 ;;; Copyright © 2021 Guix Together <[email protected]>
@@ -3170,6 +3170,45 @@ especially suitable for working with geographic data.  
It an alternative fork
 of https://github.com/golang/geo.";)
     (license license:asl2.0)))
 
+(define-public go-github-com-blevesearch-mmap-go
+  (package
+    (name "go-github-com-blevesearch-mmap-go")
+    (version "1.2.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/blevesearch/mmap-go";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1wnjv27jf0lg9vdmcnzc56b5gl7250qiq0y917yc2lghvp3qdafy"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/blevesearch/mmap-go"))
+    (propagated-inputs
+     (list go-golang-org-x-sys))
+    (home-page "https://github.com/blevesearch/mmap-go";)
+    (synopsis "Memory mapped fiels (mmap) in Golang")
+    (description
+     "This package implements functionality of mapping files into memory.  It
+tries to provide a simple interface, but doesn't go out of its way to abstract
+away every little platform detail.
+
+This specifically means:
+@itemize
+@item forked processes may or may not inherit mappings
+@item a file's timestamp may or may not be updated by writes through mappings
+@item specifying a size larger than the file's actual size can increase the
+file's size
+@item if the mapped file is being modified by another process while your
+program's running, don't expect consistent results between platforms
+@end itemize
+
+It's an alternative fork of https://github.com/edsrzf/mmap-go";)
+    (license license:bsd-3)))
+
 (define-public go-github-com-bmatcuk-doublestar
   (package
     (name "go-github-com-bmatcuk-doublestar")

Reply via email to