From patchwork Tue Jan 17 17:36:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 9234 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 1CC3327BBED; Tue, 17 Jan 2023 17:38:38 +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 AF38127BBE9 for ; Tue, 17 Jan 2023 17:38:35 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHpuO-0000Un-GT; Tue, 17 Jan 2023 12:38: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 1pHpuM-0000Tp-E9 for guix-patches@gnu.org; Tue, 17 Jan 2023 12:38: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 1pHpuM-0000kH-6J for guix-patches@gnu.org; Tue, 17 Jan 2023 12:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHpuM-0002f6-1O for guix-patches@gnu.org; Tue, 17 Jan 2023 12:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60889] Add zig-build-system Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 Jan 2023 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60889 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 60889@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , "efraim@flashner.co.il" X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.167397702610168 (code B ref -1); Tue, 17 Jan 2023 17:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2023 17:37:06 +0000 Received: from localhost ([127.0.0.1]:38181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHptR-0002dv-NT for submit@debbugs.gnu.org; Tue, 17 Jan 2023 12:37:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:41084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHptP-0002dn-Rv for submit@debbugs.gnu.org; Tue, 17 Jan 2023 12:37: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 1pHptP-0008J9-Hn for guix-patches@gnu.org; Tue, 17 Jan 2023 12:37:03 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHptK-0000d8-Nw; Tue, 17 Jan 2023 12:37:03 -0500 Date: Tue, 17 Jan 2023 17:36:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1673977013; x=1674236213; bh=scE4MY+/pnMz43ddke1Ea34kE+EfBCg4PJCqqcsjAqQ=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=e03U6OffKV+WO8U03PhOuzDvhoHXT1STRNQAxWfKrTOes8qcNG/kSbkEC81GhqBTW Kd8HQ3pV7zFg6cLMgvqojdUNEjQtfrmD/oFEA52PbHwV2t6xwE/8pMwQUTLl74brV7 t0FgcCd1dVvmzDN+KP9vcGC2V3sbsGKCS8JO6YxY/iaNsxqdSvOhxznukXu3WoKK4X fH2+Qgqit1q7LoHMEWgeOsjaRHZXXo8/ro+6N4vfji1K0deXrGDPWbHwDY8FF26+ei SSEyvTbIJF5FCptASXeT8+F03xfcsupXfL8mg+cR/CpGOXi4T9HQuoal8QPqeL5ekv wrGZcJujunPAw== From: Ekaitz Zarraga Message-ID: <7NnZFxGvY0oj1TtDERAWi3dMBqoRv2AJoGBlaDPJA6vueGK91igAml6SLzMhNJyc1TssJW--OgezzmxLl5yv5MSgd7Wz6MRkORfOT62_f3w=@elenq.tech> Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.43.23; envelope-from=ekaitz@elenq.tech; helo=mail-4323.proton.ch 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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: , 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 Hi, This is tentative patch for a zig-build-system and a package that makes use of it as a testing. Please, share your thoughts and feelings about it. Cheers, Ekaitz From d492455090e97445cd0595ed1117bb564ad41640 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 15 Dec 2022 13:02:25 +0100 Subject: [PATCH 2/2] gnu: Add tigerbeetle. * gnu/packages/zig.scm (tigerbeetle): New variable. --- gnu/packages/zig.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm index cda93bed2e..2ff65b3b1a 100644 --- a/gnu/packages/zig.scm +++ b/gnu/packages/zig.scm @@ -25,7 +25,8 @@ (define-module (gnu packages zig) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system cmake) #:use-module (gnu packages) - #:use-module (gnu packages llvm)) + #:use-module (gnu packages llvm) + #:use-module (guix build-system zig)) (define-public zig (package @@ -104,3 +105,33 @@ (define-public zig ;; https://github.com/ziglang/zig/issues/6485 (supported-systems %64bit-supported-systems) (license license:expat))) + + +(define-public tigerbeetle + (let ((commit-id "2022-12-12-weekly") + (revision "0")) + (package + (name "tigerbeetle") + (version (string-append revision "-" commit-id)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tigerbeetledb/tigerbeetle.git") + (commit commit-id))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18rawl8rhyplw8hpa3fzbq9fqg088x0calz688c7zdff6y6f6mcr")))) + (build-system zig-build-system) + + (arguments + `(#:zig-release-type "safe")) + + (synopsis "Distributed financial accounting database designed for mission +critical safety and performance") + + (description "Financial accounting database designed for mission critical +safet y and performance to power the future of financial +services.") + (home-page "https://github.com/tigerbeetledb/tigerbeetle.git") + (license license:asl2.0)))) -- 2.38.0