From patchwork Wed Dec 21 03:18:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 45487 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4E36D27BBE9; Wed, 21 Dec 2022 03:19:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6F58227BBEE for ; Wed, 21 Dec 2022 03:19:40 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7pdI-0000dN-4y; Tue, 20 Dec 2022 22:19:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7pdG-0000ca-OY for guix-patches@gnu.org; Tue, 20 Dec 2022 22:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7pdG-0003Iz-FC for guix-patches@gnu.org; Tue, 20 Dec 2022 22:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p7pdG-0000HD-8C for guix-patches@gnu.org; Tue, 20 Dec 2022 22:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60232] [PATCH 2/4] gnu: Add zix. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 21 Dec 2022 03:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60232 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60232@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 60232-submit@debbugs.gnu.org id=B60232.16715927141018 (code B ref 60232); Wed, 21 Dec 2022 03:19:02 +0000 Received: (at 60232) by debbugs.gnu.org; 21 Dec 2022 03:18:34 +0000 Received: from localhost ([127.0.0.1]:48889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7pcn-0000GK-QS for submit@debbugs.gnu.org; Tue, 20 Dec 2022 22:18:34 -0500 Received: from mout-p-102.mailbox.org ([80.241.56.152]:59184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p7pck-0000Ft-QB for 60232@debbugs.gnu.org; Tue, 20 Dec 2022 22:18:31 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4NcJYW0KG6z9sWN for <60232@debbugs.gnu.org>; Wed, 21 Dec 2022 04:18:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1671592703; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uL+F2xxl6ROB7Hq3gva9qjFxy0sHxJ3egTfJorR1e0Y=; b=ivOUnHPt1Fvb1fHwU25x0b/Xi9OtbTduLWyHtnm+cSBt6drNW+B4YtPApVwiSEjlqJNO1J jr+6rsFg1vWkp4b+0ymNXU+cMv5wdb575qkGu/Y6zmHEVk4MqKOPfmbP2oPIFBeMALSWYn epaqZ/O2bqVLnFauj2IXh8xfAGJ9hdnvl0CLARGW/bFUr1BsznQixVNBa/9OVkpd6yMkfS R4Gz5ZSduO0THhmsOEle2WOHh57S1eLsHs9XvVuDgqj0n6RN+FRHTMfl1ZmfFjXDLVSkuc f+p1nfO2FJTLAozwoEr7LjG3LqKR2HlRYm/6tlZhbVe7VbcIdsGLnjpvBmwcUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1671592700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uL+F2xxl6ROB7Hq3gva9qjFxy0sHxJ3egTfJorR1e0Y=; b=FTa2Bcq8SOJK8LSXVMywN0KfM+8m49SQ1jy74q4iTMZDu6piJdZukGc0f824k66O6vS48w XNQWKzuDAZrP0xc2kKY/kOiSQnM2CbXGB6lqqXmsOzxRuDp+dLHiD/rlIRiP27LXzFSbdI uVmCj1R/sa3oVDggQYyWvxCsDYcsuk9SxuheFq1TaOVNyRGRXo4FQ5hZhkEw5595URTIaM 92fowJvVGp7R5s7s+HbvjZSACUzdTsiVBOrSVaiQyXeDmCdDt2+2xXxlvle8leHGFvGeJX nqv5Wbsg4315Op8dnH5lxr37LlCQbSVdOqaOqzwWh7EW+9VMBbzGFWc0e3aP6Q== Date: Wed, 21 Dec 2022 03:18:02 +0000 Message-Id: <20221221031804.3191-2-antero@mailbox.org> In-Reply-To: <20221221031804.3191-1-antero@mailbox.org> References: <20221221031804.3191-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: nspj3eyuu64kp5ijs16g7wiee73zgqrz X-MBO-RS-ID: 2cda81e03261d63d42b X-Rspamd-Queue-Id: 4NcJYW0KG6z9sWN X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/datastructures.scm (zix): New variable. --- gnu/packages/datastructures.scm | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/datastructures.scm b/gnu/packages/datastructures.scm index d40051506f..3d179624b8 100644 --- a/gnu/packages/datastructures.scm +++ b/gnu/packages/datastructures.scm @@ -26,6 +26,7 @@ (define-module (gnu packages datastructures) #:use-module (gnu packages autotools) #:use-module (gnu packages boost) #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix gexp) @@ -390,3 +391,42 @@ (define-public robin-map policy, the last two use a prime growth policy instead and are able to cope better with a poor hash function.") (license license:expat))) + +(define-public zix + (let ((commit "56ec14c4369c591f5efbb500b0829b760bee7800") + (revision "0")) + (package + (name "zix") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/drobilla/zix.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "095b2vjmwh9swbwkkkjpcdhsi0c93lxrzd76k7hzdyyf7zb5rgdx")))) + (build-system meson-build-system) + (arguments + (list #:configure-flags #~(list "-Ddocs=disabled"))) ;needs "sphinxygen" + (native-inputs (list pkg-config)) + (home-page "https://gitlab.com/drobilla/zix") + (synopsis "C library of portability wrappers and data structures") + (description + "Zix is a C library of portability wrappers and data structures. It +provides the following components: +@enumerate +@item @code{ZixAllocator}: A customizable allocator. +@item @code{ZixBumpAllocator}: A simple realtime-safe bump-pointer allocator. +@item @code{ZixBTree}: A page-allocated B-tree. +@item @code{ZixHash}: An open-addressing hash table. +@item @code{ZixRing}: A lock-free realtime-safe ring buffer. +@item @code{ZixSem}: A portable semaphore wrapper. +@item @code{ZixThread}: A portable thread wrapper. +@item @code{ZixTree}: A binary search tree. +@item @code{zix/digest.h}: Digest functions suitable for hashing arbitrary data. +@item @code{zix/filesystem.h}: Functions for working with filesystems. +@item @code{zix/path.h}: Functions for working with filesystem paths lexically. +@end enumerate\n") + (license license:isc))))