diff options
author | Marius Bakke <marius@gnu.org> | 2022-08-10 22:11:42 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-08-11 00:21:11 +0200 |
commit | 5b5ab17adfe4256de9b9110ba687c6f5cb65a932 (patch) | |
tree | 60e5d2db249e4902d06831101f2783350f47e02c /gnu/packages/datastructures.scm | |
parent | 178b762d686405a25dcc7bbf2f4dda98df8a3bde (diff) | |
download | guix-5b5ab17adfe4256de9b9110ba687c6f5cb65a932.tar.gz |
gnu: Add libcuckoo.
* gnu/packages/datastructures.scm (libcuckoo): New variable.
Diffstat (limited to 'gnu/packages/datastructures.scm')
-rw-r--r-- | gnu/packages/datastructures.scm | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/gnu/packages/datastructures.scm b/gnu/packages/datastructures.scm index 4fa38ee3d4..d40051506f 100644 --- a/gnu/packages/datastructures.scm +++ b/gnu/packages/datastructures.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com> ;;; Copyright © 2019, 2020, 2022 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020 Mark H Weaver <mhw@netris.org> -;;; Copyright © 2020 Marius Bakke <marius@gnu.org> +;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +28,7 @@ #:use-module (gnu packages perl) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system cmake) @@ -134,6 +135,29 @@ that have sequences of identical bytes in the same order, even though bytes in between these sequences may be different in both content and length.") (license license:gpl2+))) +(define-public libcuckoo + (package + (name "libcuckoo") + (version "0.3.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/efficient/libcuckoo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0h9yhpkhk813dk66y6bs2csybw3pbpfnp3cakr2xism02vjwy19l")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~'("-DBUILD_TESTS=1"))) + (home-page "https://efficient.github.io/libcuckoo/") + (synopsis "Concurrent hash table") + (description + "@code{libcuckoo} provides a high-performance, compact hash table that +allows multiple concurrent reader and writer threads.") + (license license:asl2.0))) + (define-public liburcu (package (name "liburcu") |