37 lines
942 B
Nix
37 lines
942 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
unstableGitUpdater,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage rec {
|
||
|
|
pname = "rsonpath";
|
||
|
|
version = "0.9.1-unstable-2024-11-15";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "rsonquery";
|
||
|
|
repo = "rsonpath";
|
||
|
|
rev = "979e6374a68747dfba7b87b61bbe77951f749659";
|
||
|
|
hash = "sha256-YQCbkdv7PRf5hVXAGUg6DrtaCLIyS9nUGXsl8XHpKZU=";
|
||
|
|
};
|
||
|
|
|
||
|
|
passthru.updateScript = unstableGitUpdater {
|
||
|
|
tagPrefix = "v";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-9pSn0f0VWsBg1z1UYGRtMb1z23htRm7qLmO80zvSjN8=";
|
||
|
|
|
||
|
|
cargoBuildFlags = [ "-p=rsonpath" ];
|
||
|
|
cargoTestFlags = cargoBuildFlags;
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Experimental JSONPath engine for querying massive streamed datasets";
|
||
|
|
homepage = "https://github.com/v0ldek/rsonpath";
|
||
|
|
changelog = "https://github.com/v0ldek/rsonpath/blob/${src.rev}/CHANGELOG.md";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [ figsoda ];
|
||
|
|
mainProgram = "rq";
|
||
|
|
};
|
||
|
|
}
|