nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 rdkafka,
5 pkg-config,
6 fetchFromGitHub,
7 rustPlatform,
8 fetchzip,
9 versionCheckHook,
10 nix-update-script,
11}:
12
13rustPlatform.buildRustPackage rec {
14 pname = "parseable";
15 version = "2.5.10";
16
17 src = fetchFromGitHub {
18 owner = "parseablehq";
19 repo = "parseable";
20 tag = "v${version}";
21 hash = "sha256-Asb6064TqvL9kNkWBMj4Z+1j1yIM+iBWsN+R5EuMOVA=";
22 };
23
24 LOCAL_ASSETS_PATH = fetchzip {
25 url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v${version}/build.zip";
26 hash = "sha256-gWzfucetsJJSSjI9nGm7I8xLo0t1VKb4AertiEGuLWA=";
27 };
28
29 cargoHash = "sha256-1K+EY8YkAjLiWfqUkgkqQOveXjHzraEV51zz3gwGMNs=";
30
31 nativeBuildInputs = [ pkg-config ];
32
33 buildInputs = [ rdkafka ];
34
35 buildFeatures = [ "rdkafka/dynamic-linking" ];
36
37 nativeInstallCheckInputs = [ versionCheckHook ];
38 doInstallCheck = true;
39
40 # Disables tests that rely on hostnames.
41 checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
42 "--skip=generate_correct_path_with_current_time_and"
43 ];
44
45 passthru.updateScript = nix-update-script { };
46
47 meta = {
48 description = "Disk less, cloud native database for logs, observability, security, and compliance";
49 homepage = "https://www.parseable.com";
50 changelog = "https://github.com/parseablehq/parseable/releases/tag/v${version}";
51 license = lib.licenses.agpl3Only;
52 maintainers = with lib.maintainers; [ ilyakooo0 ];
53 mainProgram = "parseable";
54 };
55}