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 ;;; Copyright © 2019, 2020, 2022 Efraim Flashner ;;; Copyright © 2020 Mark H Weaver -;;; Copyright © 2020 Marius Bakke +;;; Copyright © 2020, 2022 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -28,6 +28,7 @@ (define-module (gnu packages datastructures) #: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 @@ (define-public ssdeep 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")