diff options
author | Leo Nikkilä <hello@lnikki.la> | 2024-08-12 17:22:05 +0100 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-08-25 20:46:45 +0100 |
commit | a4d28f6574e56a8f61d7a3a4a6d27681afd2d822 (patch) | |
tree | 632c7fb9e46c6811053a98a4a06e808bc4d16f3b /gnu/packages | |
parent | e8993a66d23ecea63ccb8bf93a54aa64668b825a (diff) | |
download | guix-a4d28f6574e56a8f61d7a3a4a6d27681afd2d822.tar.gz guix-a4d28f6574e56a8f61d7a3a4a6d27681afd2d822.zip |
gnu: Add go-github-com-edsrzf-mmap-go.
* gnu/packages/golang-xyz.scm (go-github-com-edsrzf-mmap-go): New variable.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I53bab656d8e9607c93b48c8877c9f568cbd4ef41
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/golang-xyz.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index e925eed408..842e28824d 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -2102,6 +2102,42 @@ Implements string conversion functionality for unit prefixes. scanner API made public.") (license license:bsd-3))) +(define-public go-github-com-edsrzf-mmap-go + (package + (name "go-github-com-edsrzf-mmap-go") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/edsrzf/mmap-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11xpfcacfvmrkbp0pv4j8pg2gyjnxpfp7l93j42h0svwxywhjmrc")))) + (build-system go-build-system) + (propagated-inputs (list go-golang-org-x-sys)) + (arguments + (list + #:import-path "github.com/edsrzf/mmap-go")) + (home-page "https://github.com/edsrzf/mmap-go") + (synopsis "Memory mapped fiels (mmap) in Golang") + (description + "This package implements functinoality 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") + (license license:bsd-3))) + (define-public go-github-com-elliotchance-orderedmap (package (name "go-github-com-elliotchance-orderedmap") |