guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#54235] [PATCH 2/3] gnu: Add ck.


From: Maxim Cournoyer
Subject: [bug#54235] [PATCH 2/3] gnu: Add ck.
Date: Thu, 3 Mar 2022 09:05:57 -0500

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

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index e53a7c865f..613f3c504e 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -896,6 +896,45 @@ (define-public aws-c-mqtt
     (home-page "https://github.com/awslabs/aws-c-mqtt";)
     (license license:asl2.0)))
 
+(define-public ck
+  (package
+    (name "ck")
+    (version "0.7.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/concurrencykit/ck";)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "020yzfpvymdc8lc44znlnxmxb8mvp42g4nb4p8k814klazqvwh0x"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'configure
+            ;; ck uses a custom configure script that stumbles on
+            ;; '--enable-fast-install'.
+            (lambda* (#:key parallel-build? #:allow-other-keys)
+              (invoke "./configure"
+                      (string-append "--prefix=" #$output)
+                      (string-append "--mandir=" #$output "/share/man")
+                      "--use-cc-builtins"
+                      (string-append "--cores="
+                                     (if parallel-build?
+                                         (number->string (parallel-job-count))
+                                         "1"))))))))
+    (home-page "https://github.com/concurrencykit/ck";)
+    (synopsis "C library for concurrent systems")
+    (description "Concurrency Kit (@code{ck}) provides concurrency primitives,
+safe memory reclamation mechanisms and non-blocking (including lock-free) data
+structures designed to aid in the research, design and implementation of high
+performance concurrent systems developed in C99+.")
+    (license (list license:bsd-2        ;everything except...
+                   license:asl2.0))))   ;src/ck_hp.c
+
 (define-public utf8-h
   ;; The latest tag is used as there is no release.
   (let ((commit "500d4ea9f4c3449e5243c088d8af8700f7189734")
-- 
2.34.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]