From f8284ab963c8fce9a8b0fafc381b633e57f5c828 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 8 Feb 2026 20:37:49 +0000 Subject: [PATCH] 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 --- 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 ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020, 2021 raingloom -;;; Copyright © 2021 Arun Isaac +;;; Copyright © 2021, 2026 Arun Isaac ;;; Copyright © 2021 Collin J. Doering ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Guix Together @@ -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")