11 if stdenvNoCC.hostPlatform.isDarwin then "universal-macos" else stdenvNoCC.hostPlatform.system;
12 hash = builtins.getAttr platform {
13 "universal-macos" = "sha256-xuj14E2JVcyAJ8TrLdZ42X19x3E94SSDC4VqrvQD6Lo=";
14 "x86_64-linux" = "sha256-M6OCtktN6GnHpIMYNeEvB4K6uHR/+KDq2ByMBPcstQw=";
15 "aarch64-linux" = "sha256-WxO1A2bVMEv5k7yFkeUy06BZy8vVnykSXs+6GN6VIGA=";
18 stdenvNoCC.mkDerivation (finalAttrs: {
19 pname = "tigerbeetle";
23 url = "https://github.com/tigerbeetle/tigerbeetle/releases/download/${finalAttrs.version}/tigerbeetle-${platform}.zip";
35 cp $src/tigerbeetle $out/bin/tigerbeetle
41 tests.version = testers.testVersion {
42 package = tigerbeetle;
43 command = "tigerbeetle version";
45 updateScript = ./update.sh;
49 homepage = "https://tigerbeetle.com/";
50 description = "Financial accounting database designed to be distributed and fast";
51 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [
59 ] ++ lib.platforms.darwin;
60 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
61 mainProgram = "tigerbeetle";