Files

56 lines
1.5 KiB
Nix

{
lib,
stdenv,
rdkafka,
pkg-config,
fetchFromGitHub,
rustPlatform,
fetchzip,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "parseable";
version = "2.5.10";
src = fetchFromGitHub {
owner = "parseablehq";
repo = "parseable";
tag = "v${finalAttrs.version}";
hash = "sha256-Asb6064TqvL9kNkWBMj4Z+1j1yIM+iBWsN+R5EuMOVA=";
};
env.LOCAL_ASSETS_PATH = fetchzip {
url = "https://parseable-prism-build.s3.us-east-2.amazonaws.com/v${finalAttrs.version}/build.zip";
hash = "sha256-gWzfucetsJJSSjI9nGm7I8xLo0t1VKb4AertiEGuLWA=";
};
cargoHash = "sha256-1K+EY8YkAjLiWfqUkgkqQOveXjHzraEV51zz3gwGMNs=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ rdkafka ];
buildFeatures = [ "rdkafka/dynamic-linking" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
# Disables tests that rely on hostnames.
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"--skip=generate_correct_path_with_current_time_and"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Disk less, cloud native database for logs, observability, security, and compliance";
homepage = "https://www.parseable.com";
changelog = "https://github.com/parseablehq/parseable/releases/tag/v${finalAttrs.version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ ilyakooo0 ];
mainProgram = "parseable";
};
})