From patchwork Sat Feb 11 11:00:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maya Tomasek X-Patchwork-Id: 46848 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 7DB561661C; Sat, 11 Feb 2023 11:02:29 +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 CEDA31661A for ; Sat, 11 Feb 2023 11:02:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQnds-0003Ak-EQ; Sat, 11 Feb 2023 06:02: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 1pQndr-0003AT-OU for guix-patches@gnu.org; Sat, 11 Feb 2023 06:02:03 -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 1pQndr-0002Bo-8I for guix-patches@gnu.org; Sat, 11 Feb 2023 06:02:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQndr-0008CX-4H for guix-patches@gnu.org; Sat, 11 Feb 2023 06:02:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61423] [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 11:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61423@debbugs.gnu.org Cc: Antero Mejr Received: via spool by 61423-submit@debbugs.gnu.org id=B61423.167611331731479 (code B ref 61423); Sat, 11 Feb 2023 11:02:03 +0000 Received: (at 61423) by debbugs.gnu.org; 11 Feb 2023 11:01:57 +0000 Received: from localhost ([127.0.0.1]:39090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQndk-0008BY-Sb for submit@debbugs.gnu.org; Sat, 11 Feb 2023 06:01:57 -0500 Received: from knopi.disroot.org ([178.21.23.139]:55490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQndh-0008B4-E9 for 61423@debbugs.gnu.org; Sat, 11 Feb 2023 06:01:54 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C854541469; Sat, 11 Feb 2023 12:01:52 +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 uM9CP9JdxDO1; Sat, 11 Feb 2023 12:01:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1676113311; bh=gJz8Hy2MGZClR7j/+MiH4aUxyCT9jhDzLoDGEpIZje8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Mta/OGjiRYh0vmU7xEHOehr8eGx4aBbmo0X3sFCMj3ziD440reQnTOqW8QT0CfQQD bEXixysogPA0hCmSV/R9a5u+wiXVxOvBnqhQdHT0MlRe/4LsznVFlrfCSm9aRZm1vD NMEpBOJf8geT3eT2JCUMuDK5qoxD2VsyXXK4vDZxGz1LdbrRz92F4fimNJ1JvRwS1q fOPNviqEmaXTSklM+wZad74bysunKEwoAGTaPfYsXKGcocrFXK/oeO8rEEVWm9NK3p TaY3NCHDRXvQYtsx6e+/gwVTZbynfjx/7aZHIviQVnNZn96ZP8PoBmKweT/4Wv6AgW fRdoD6hbhCVGA== Date: Sat, 11 Feb 2023 12:00:38 +0100 Message-Id: <20230211110039.27645-3-maya.tomasek@disroot.org> In-Reply-To: <20230211110039.27645-1-maya.tomasek@disroot.org> References: <20230211110039.27645-1-maya.tomasek@disroot.org> MIME-Version: 1.0 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))))