From 4345d9197b2b9a4cfbd9f02163036b21a61d4364 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 11 Sep 2025 10:53:34 +0100 Subject: [PATCH] gnu: Add go-github-com-nightlyone-lockfile. * gnu/packages/golang-xyz.scm (go-github-com-nightlyone-lockfile): New variable. Change-Id: I82c3d42cf350bc71dc5315f84f76d43c9677ac26 --- gnu/packages/golang-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index f6c637787b79510cb08ff162b22782d0c4a11740..6f9a96ffe2de9b25bacaf2ab005ed166c712c5bf 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -15188,6 +15188,33 @@ through it's psuedoterminal.") list of sentences.") (license license:expat))) +(define-public go-github-com-nightlyone-lockfile + (package + (name "go-github-com-nightlyone-lockfile") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nightlyone/lockfile") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "092r6gv27khplc3srg2ai7214hnvpms6klnsl66x49mspq10b7l5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/nightlyone/lockfile")) + (home-page "https://github.com/nightlyone/lockfile") + (synopsis " Handle locking via pid files ") + (description + "Package lockfile handles pid file based locking. While a +@code{sync.Mutex} helps against concurrency issues within a single process, +this package is designed to help against concurrency issues between +cooperating processes or serializing multiple invocations of the same +process.") + (license license:expat))) + (define-public go-github-com-niklasfasching-go-org (package (name "go-github-com-niklasfasching-go-org")