From patchwork Mon Mar 18 17:04:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giovanni Biscuolo X-Patchwork-Id: 1496 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5D0A016DA9; Mon, 18 Mar 2019 17:05:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D5AFE16DA5 for ; Mon, 18 Mar 2019 17:05:13 +0000 (GMT) Received: from localhost ([127.0.0.1]:44638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vhJ-0008Hz-AR for patchwork@mira.cbaines.net; Mon, 18 Mar 2019 13:05:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vhA-0008Gv-Dm for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5vh9-0003wW-AC for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35566) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h5vh8-0003wK-Td for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h5vh8-00006p-KF for guix-patches@gnu.org; Mon, 18 Mar 2019 13:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#34906] [PATCH] gnu: Add go-github-com-burntsushi-locker Resent-From: Giovanni Biscuolo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Mar 2019 17:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34906 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34906@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1552928679385 (code B ref -1); Mon, 18 Mar 2019 17:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Mar 2019 17:04:39 +0000 Received: from localhost ([127.0.0.1]:49110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5vgl-000069-5j for submit@debbugs.gnu.org; Mon, 18 Mar 2019 13:04:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h5vgi-00005m-KD for submit@debbugs.gnu.org; Mon, 18 Mar 2019 13:04:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:58579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h5vgc-0003eT-LY for submit@debbugs.gnu.org; Mon, 18 Mar 2019 13:04:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vgb-0008Dp-HS for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5vgZ-0003d6-KJ for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:29 -0400 Received: from ns13.heimat.it ([46.4.214.66]:42366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5vgX-0003bO-KO for guix-patches@gnu.org; Mon, 18 Mar 2019 13:04:26 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 382693000D5 for ; Mon, 18 Mar 2019 17:04:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gSGoryPJValL for ; Mon, 18 Mar 2019 17:04:02 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 5C1433000D0 for ; Mon, 18 Mar 2019 17:04:02 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id A5321300056 for ; Mon, 18 Mar 2019 18:04:01 +0100 (CET) Received: (nullmailer pid 30657 invoked by uid 1000); Mon, 18 Mar 2019 17:04:01 -0000 From: Giovanni Biscuolo Organization: Xelera.eu Date: Mon, 18 Mar 2019 18:04:00 +0100 Message-ID: <875zsgt8qn.fsf@roquette.mug.biscuolo.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi Guix! I've packaged go-github-com-burntsushi-locker, it builds on my platform and it's linted Thanks! Gio From 3601eec98d105cb657b80a0b0ba23c6cfc2fff41 Mon Sep 17 00:00:00 2001 From: Giovanni Biscuolo 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 ;;; Copyright © 2018 Pierre Neidhardt ;;; Copyright @ 2018 Katherine Cox-Buday +;;; Copyright @ 2019 Giovanni Biscuolo ;;; ;;; 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