all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giovanni Biscuolo <g@xelera.eu>
To: 34906@debbugs.gnu.org
Subject: [bug#34906] [PATCH] gnu: Add go-github-com-burntsushi-locker
Date: Mon, 18 Mar 2019 18:04:00 +0100	[thread overview]
Message-ID: <875zsgt8qn.fsf@roquette.mug.biscuolo.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 99 bytes --]

Hi Guix!

I've packaged go-github-com-burntsushi-locker, it builds on my platform
and it's linted


[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: 0001-gnu-Add-go-github-com-burntsushi-locker.patch --]
[-- Type: text/x-diff, Size: 2561 bytes --]

From 3601eec98d105cb657b80a0b0ba23c6cfc2fff41 Mon Sep 17 00:00:00 2001
From: Giovanni Biscuolo <g@xelera.eu>
Date: Mon, 18 Mar 2019 17:46:05 +0100
Subject: [PATCH] gnu: Add go-github-com-burntsushi-locker

* gnu/packages/golang.scm (go-github-com-burntsushi-locker): New variable.
---
 gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4bcd5cfcfe..d7b7ea3fef 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
 ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
 ;;; Copyright @ 2018 Katherine Cox-Buday <cox.katherine.e@gmail.com>
+;;; Copyright @ 2019 Giovanni Biscuolo <g@xelera.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3177,3 +3178,37 @@ format in Go.")
     (description "This package provides a text formatting functions in Go.")
     (home-page "https://github.com/kr/text")
     (license license:expat)))
+
+(define-public go-github-com-burntsushi-locker
+  (let ((commit "a6e239ea1c69bff1cfdb20c4b73dadf52f784b6a")
+        (revision "0"))
+    (package
+      (name "go-github-com-burntsushi-locker")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/BurntSushi/locker")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1xak4aync4klswq5217qvw191asgla51jr42y94vp109lirm5dzg"))))
+      (build-system go-build-system)
+      (arguments
+       '(#:import-path "github.com/BurntSushi/locker"))
+      (home-page "https://github.com/BurntSushi/locker")
+      (synopsis "Manage named ReadWrite mutexes in Go")
+      (description "Golang package for conveniently using named read/write
+locks.  These appear to be especially useful for synchronizing access to
+session based information in web applications.
+
+The common use case is to use the package level functions, which use a package
+level set of locks (safe to use from multiple goroutines
+simultaneously).  However, you may also create a new separate set of locks
+test.
+
+All locks are implemented with read-write mutexes.  To use them like a regular
+mutex, simply ignore the RLock/RUnlock functions.")
+      (license license:public-domain))))
-- 
2.11.0


[-- Attachment #3: Type: text/plain, Size: 63 bytes --]


Thanks!
Gio

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

             reply	other threads:[~2019-03-18 17:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18 17:04 Giovanni Biscuolo [this message]
2019-03-18 17:24 ` bug#34906: [PATCH] gnu: Add go-github-com-burntsushi-locker Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zsgt8qn.fsf@roquette.mug.biscuolo.net \
    --to=g@xelera.eu \
    --cc=34906@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.