unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 56202@debbugs.gnu.org
Subject: [bug#56202] [PATCH v3] gnu: Add nsync.
Date: Thu,  6 Apr 2023 20:16:49 +0000	[thread overview]
Message-ID: <20230406201649.8364-1-antero@mailbox.org> (raw)
In-Reply-To: <20220624183946.23595-1-antero@mailbox.org>

* gnu/packages/c.scm (nsync): New variable.
---
 gnu/packages/c.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index b2f16613dd..c7d3fb258c 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -1375,3 +1375,32 @@ (define-public utest-h
       (description
        "This package provides a header-only unit testing library for C/C++.")
       (license license:unlicense))))
+
+(define-public nsync
+  (package
+    (name "nsync")
+    (version "1.25.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/google/nsync")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1nnavsm5m0yl65r9nyxzzg0y1z1dr0r9933b5329k7n1r6ndinbd"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")))
+    (home-page "https://github.com/google/nsync")
+    (synopsis "C library for synchronization primitives")
+    (description
+     "nsync is a C library that exports various synchronization primitives:
+@itemize
+@item locks
+@item condition variables
+@item run-once initialization
+@item waitable counter (useful for barriers)
+@item waitable bit (useful for cancellation, or other conditions)
+@end itemize")
+    (license license:asl2.0)))
-- 
2.38.1





  parent reply	other threads:[~2023-04-06 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 18:39 [bug#56202] [PATCH] gnu: Add nsync Antero Mejr via Guix-patches via
2022-11-15 22:26 ` [bug#56202] [PATCH v2] " Antero Mejr via Guix-patches via
2023-04-06 20:16 ` Antero Mejr via Guix-patches via [this message]
2023-06-16  6:01 ` [bug#56202] [PATCH v4] " Andy Tai
2023-07-28  4:54 ` [bug#56202] [PATCH v5] " Andy Tai
2023-09-08  8:48 ` bug#56202: [PATCH] " Ricardo Wurmus

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20230406201649.8364-1-antero@mailbox.org \
    --to=guix-patches@gnu.org \
    --cc=56202@debbugs.gnu.org \
    --cc=antero@mailbox.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).