[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56202] [PATCH v4] gnu: Add nsync.
From: |
Andy Tai |
Subject: |
[bug#56202] [PATCH v4] gnu: Add nsync. |
Date: |
Thu, 15 Jun 2023 23:01:11 -0700 |
* gnu/packages/c.scm (nsync): New variable.
---
gnu/packages/c.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index e8bde0133d..0b8cf20c6e 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2022 Ekaitz Zarraga <ekaitz@elenq.tech>
;;; Copyright © 2022 ( <paren@disroot.org>
;;; Copyright © 2023 zamfofex <zamfofex@twdb.moe>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1453,6 +1454,35 @@ (define-public utest-h
"This package provides a header-only unit testing library for C/C++.")
(license license:unlicense))))
+
+(define-public nsync
+ (package
+ (name "nsync")
+ (version "1.26.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
+ "0qg58kkcbm4zqkql8j5yvrb7fpx09qsf7j93dwqb9s1y69l70kx4"))))
+ (build-system cmake-build-system)
+ (home-page "https://github.com/google/nsync")
+ (synopsis "C library for synchronization primitives")
+ (description
+ "nsync is a C library that exports various synchronization primitives:
+@enumerate
+@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 enumerate
+")
+ (license license:asl2.0)))
+
(define-public ispc
(package
(name "ispc")
base-commit: 31336e9f5d68512a9c1c6826bce9f17c892a2125
--
2.40.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#56202] [PATCH v4] gnu: Add nsync.,
Andy Tai <=