Skip to content

Commit

Permalink
parseable: init at 1.7.1
Browse files Browse the repository at this point in the history
Apply suggestions from code review

Co-authored-by: Felix Bargfeldt <[email protected]>
  • Loading branch information
ilyakooo0 and Defelo committed Jan 10, 2025
1 parent 00c24cc commit 3ee5dbc
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/by-name/pa/parseable/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
rdkafka,
pkg-config,
fetchFromGitHub,
rustPlatform,
fetchzip,
versionCheckHook,
nix-update-script,
}:

rustPlatform.buildRustPackage rec {
pname = "parseable";
version = "1.7.1";

src = fetchFromGitHub {
owner = "parseablehq";
repo = "parseable";
tag = "v${version}";
hash = "sha256-Uoejniv6hUpxTZ6gosP+LHTo4FD+o1AlUEWopdpz5M0=";
};

LOCAL_ASSETS_PATH = fetchzip {
url = "https://github.com/parseablehq/console/releases/download/v0.9.15/build.zip";
hash = "sha256-T37pI7adfKPDkCETcGcZVzcYVcxROSZLDrFhV4XO4tc=";
};

useFetchCargoVendor = true;
cargoHash = "sha256-rT/ORTOPsOgYlS8VCMBXo/cjfSJYcCtJofcPEIlc/cI=";

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";
};
}

0 comments on commit 3ee5dbc

Please sign in to comment.