heroic: use qt6 version of kdialog (#372495)
[NixPkgs.git] / pkgs / by-name / ti / tigerbeetle / package.nix
blobb6b00d786f1c75fe2de9b84808f205c71a83c174
2   lib,
3   stdenvNoCC,
4   fetchzip,
5   testers,
6   tigerbeetle,
7   nix-update-script,
8 }:
9 let
10   platform =
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=";
16   };
18 stdenvNoCC.mkDerivation (finalAttrs: {
19   pname = "tigerbeetle";
20   version = "0.16.20";
22   src = fetchzip {
23     url = "https://github.com/tigerbeetle/tigerbeetle/releases/download/${finalAttrs.version}/tigerbeetle-${platform}.zip";
24     inherit hash;
25   };
27   dontUnpack = true;
28   dontConfigure = true;
29   dontBuild = true;
31   installPhase = ''
32     runHook preInstall
34     mkdir -p $out/bin
35     cp $src/tigerbeetle $out/bin/tigerbeetle
37     runHook postInstall
38   '';
40   passthru = {
41     tests.version = testers.testVersion {
42       package = tigerbeetle;
43       command = "tigerbeetle version";
44     };
45     updateScript = ./update.sh;
46   };
48   meta = {
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; [
53       danielsidhion
54       nwjsmith
55     ];
56     platforms = [
57       "x86_64-linux"
58       "aarch64-linux"
59     ] ++ lib.platforms.darwin;
60     sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
61     mainProgram = "tigerbeetle";
62   };