nixpkgs/pkgs/by-name/pa/parseable/package.nix
2025-02-12 21:16:22 +00:00

52 lines
1.3 KiB
Nix

{
lib,
rdkafka,
pkg-config,
fetchFromGitHub,
rustPlatform,
fetchzip,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "parseable";
version = "1.7.3";
src = fetchFromGitHub {
owner = "parseablehq";
repo = "parseable";
tag = "v${version}";
hash = "sha256-arRaib5jzU2mtSJI70UphVqPN+hOGoag++jopgx/zCw=";
};
LOCAL_ASSETS_PATH = fetchzip {
url = "https://github.com/parseablehq/console/releases/download/v0.9.15/build.zip";
hash = "sha256-T37pI7adfKPDkCETcGcZVzcYVcxROSZLDrFhV4XO4tc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-j+v3lf3x3eW1PAjYdPHfma6PnUsb4m6ZBRj+5jdPxCs=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ rdkafka ];
buildFeatures = [ "rdkafka/dynamic-linking" ];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
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${version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ ilyakooo0 ];
mainProgram = "parseable";
};
}