From b706fece012009a772b5f1720033df532a276360 Mon Sep 17 00:00:00 2001 From: DS Date: Tue, 19 Dec 2023 19:13:48 -0800 Subject: [PATCH] tigerbeetle: init at 0.14.171 --- pkgs/by-name/ti/tigerbeetle/package.nix | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/ti/tigerbeetle/package.nix diff --git a/pkgs/by-name/ti/tigerbeetle/package.nix b/pkgs/by-name/ti/tigerbeetle/package.nix new file mode 100644 index 000000000000..8a3ebbb12bd1 --- /dev/null +++ b/pkgs/by-name/ti/tigerbeetle/package.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchFromGitHub +, zig_0_11 +, testers +, tigerbeetle +, nix-update-script +}: +stdenv.mkDerivation (finalAttrs: { + pname = "tigerbeetle"; + version = "0.14.171"; + + src = fetchFromGitHub { + owner = "tigerbeetle"; + repo = "tigerbeetle"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-MjsNQarRXsrWKJZ2aBi/Wc2HAYm3isLBNw81a75+nhc="; + }; + + nativeBuildInputs = [ zig_0_11.hook ]; + + zigBuildFlags = [ + "-Dgit-commit=0000000000000000000000000000000000000000" + "-Dversion=${finalAttrs.version}" + ]; + + passthru = { + tests.version = testers.testVersion { + package = tigerbeetle; + command = "tigerbeetle version"; + }; + updateScript = nix-update-script { }; + }; + + meta = { + homepage = "https://tigerbeetle.com/"; + description = "A financial accounting database designed to be distributed and fast"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ danielsidhion ]; + platforms = lib.platforms.unix; + mainProgram = "tigerbeetle"; + }; +})