~ruther/guix-local

38cffa58bad6a4db32ad4b89626e8b5ed49b9f34 — Patrick Norton 2 months ago e0db737
gnu: Add go-github-com-lanrat-extsort.

* gnu/packages/golang-xyz.scm (go-github-com-lanrat-extsort): New
variable.

Change-Id: Ifd7a41728e74c85629b418fa2ebd05783eecba99
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 42 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +42 -0
@@ 13974,6 13974,48 @@ do not update the structure in-place, but instead always yield a new
structure.  It's a stable fork of https://github.com/mndrix/ps.")
    (license license:expat)))

(define-public go-github-com-lanrat-extsort
  (package
    (name "go-github-com-lanrat-extsort")
    (version "1.4.2")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/lanrat/extsort")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1rryjcvamiivh8fhwzw0xllbhzi1s272w082yqqn3z8ji3d0lrzj"))))
    (build-system go-build-system)
    (arguments
     (list
      ;; XXX: It looks like not proper implemented logic in GetTempDir
      ;; function, the temp dire is hardcoded to /var/tmp with no options
      ;; alter it via envars: "On Unix-like systems, this typically includes
      ;; /var/tmp which is traditionally disk-backed, unlike /tmp which may be
      ;; tmpfs."
      ;;
      ;; Tests start SEGFAULT gradually when disable one by one, probably due
      ;; to the reason described above.
      #:tests? #f
      #:import-path "github.com/lanrat/extsort"
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'remove-examples
            (lambda* (#:key tests? import-path #:allow-other-keys)
              (with-directory-excursion (string-append "src/" import-path)
                (delete-file-recursively "examples")))))))
    (propagated-inputs (list go-golang-org-x-sync))
    (home-page "https://github.com/lanrat/extsort")
    (synopsis "External sorting for Golang")
    (description
     "This package implements high-performance external sorting library for
Go that enables sorting of arbitrarily large datasets that don't fit entirely
in memory.  The library operates on channels and uses temporary disk storage
to handle datasets larger than available RAM.")
    (license license:asl2.0)))

(define-public go-github-com-layeh-gopher-luar
  (package
    (name "go-github-com-layeh-gopher-luar")