10 # Read [these comments](pkgs/development/compilers/zig/hook.nix#L12-L30) on the default Zig flags, and the associated links. tigerbeetle stopped exposing the `-Doptimize` build flag, so we can't use the default Nixpkgs zig hook as-is. tigerbeetle only exposes a boolean `-Drelease` flag which we'll add in the tigerbeetle derivation in this file.
11 custom_zig_hook = zig_0_11.hook.overrideAttrs (previousAttrs: {
12 zig_default_flags = builtins.filter (flag: builtins.match "-Doptimize.*" flag == null) previousAttrs.zig_default_flags;
15 stdenv.mkDerivation (finalAttrs: {
16 pname = "tigerbeetle";
19 src = fetchFromGitHub {
20 owner = "tigerbeetle";
22 rev = "refs/tags/${finalAttrs.version}";
23 hash = "sha256-3+uCMoOnyvI//ltEaqTIXytUxxgJrfMnFly11WCh66Q=";
26 env.TIGERBEETLE_RELEASE = finalAttrs.version;
28 nativeBuildInputs = [ custom_zig_hook ];
32 "-Dgit-commit=0000000000000000000000000000000000000000"
36 tests.version = testers.testVersion {
37 package = tigerbeetle;
38 command = "tigerbeetle version";
40 updateScript = nix-update-script { };
44 homepage = "https://tigerbeetle.com/";
45 description = "Financial accounting database designed to be distributed and fast";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ danielsidhion ];
48 platforms = lib.platforms.linux;
49 mainProgram = "tigerbeetle";