From d492455090e97445cd0595ed1117bb564ad41640 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
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(-)
@@ -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