From patchwork Sat Feb 11 10:35:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Tomasek X-Patchwork-Id: 46844 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 A47CC165F0; Sat, 11 Feb 2023 10:37:55 +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 2E79916615 for ; Sat, 11 Feb 2023 10:37:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQnFi-0004cf-Gn; Sat, 11 Feb 2023 05:37:06 -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 1pQnFg-0004bV-KB for guix-patches@gnu.org; Sat, 11 Feb 2023 05:37:04 -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 1pQnFg-0005wH-B1 for guix-patches@gnu.org; Sat, 11 Feb 2023 05:37:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQnFg-00051x-7L for guix-patches@gnu.org; Sat, 11 Feb 2023 05:37:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61426] [PATCH 3/6] gnu: Add zix. Resent-From: Maya Tomasek Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Feb 2023 10:37:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61426 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61426@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167611177219173 (code B ref -1); Sat, 11 Feb 2023 10:37:04 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2023 10:36:12 +0000 Received: from localhost ([127.0.0.1]:38984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQnEq-0004z6-Ap for submit@debbugs.gnu.org; Sat, 11 Feb 2023 05:36:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:37778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQnEm-0004yg-HT for submit@debbugs.gnu.org; Sat, 11 Feb 2023 05:36:08 -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 1pQnEm-0004Oo-Br for guix-patches@gnu.org; Sat, 11 Feb 2023 05:36:08 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQnEk-0005nS-Hr for guix-patches@gnu.org; Sat, 11 Feb 2023 05:36:07 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 623F6414C8; Sat, 11 Feb 2023 11:36:04 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tovM1aY3o8cn; Sat, 11 Feb 2023 11:36:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1676111763; bh=gJz8Hy2MGZClR7j/+MiH4aUxyCT9jhDzLoDGEpIZje8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Rp4G0uPp78H6ZOEC8LZsv48HmLt7mHE7FoQzuvuGiTafIv2/8hn3+Li3SvVBpYoLX zS+0VgrF4bnHhIBr9jtZ+YtsMxIu/BFDu9nZ1ecAcVz7XV6QZnP/ojHeZwWDwETo+1 roPt95xX/+S6MjSPb/1XZ2J/gK45vEsZQZWr8//VDDX3yH2SM9DaNbJsi3LkkQ5Ml9 mGaZ/k+6YeiFDawnxblTNXWgl9QraBv2k4XY+FqTIktar/CqfTHeTayO2GDrKehAH+ rFotC9a3UGhc+OXRpLGS6dfgdkpBLmYQkNXwG8Ef4H9bcYbG6z6qxwR2javMaKpjzv EKn23szZ6W/LA== Date: Sat, 11 Feb 2023 11:35:34 +0100 Message-Id: <20230211103537.24139-4-maya.tomasek@disroot.org> In-Reply-To: <20230211103537.24139-1-maya.tomasek@disroot.org> References: <20230211103537.24139-1-maya.tomasek@disroot.org> MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=maya.tomasek@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Maya Tomasek X-ACL-Warn: , Maya Tomasek via Guix-patches X-Patchwork-Original-From: Maya Tomasek via Guix-patches via From: Maya Tomasek 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 From: Antero Mejr * 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))))