1{ lib
2, rustPlatform
3, fetchFromGitHub
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "rsonpath";
8 version = "0.9.1";
9
10 src = fetchFromGitHub {
11 owner = "v0ldek";
12 repo = "rsonpath";
13 rev = "v${version}";
14 hash = "sha256-3q0q9Bj/DPuDmHu2G9jrABFXU8xgbUUS7iTBguVWR5s=";
15 };
16
17 cargoHash = "sha256-bh72u1AvM6bGNQCjyu6GdAiK0jw5lE0SIdYzaZEjYg8=";
18
19 cargoBuildFlags = [ "-p=rsonpath" ];
20 cargoTestFlags = cargoBuildFlags;
21
22 meta = with lib; {
23 description = "Experimental JSONPath engine for querying massive streamed datasets";
24 homepage = "https://github.com/v0ldek/rsonpath";
25 changelog = "https://github.com/v0ldek/rsonpath/blob/${src.rev}/CHANGELOG.md";
26 license = licenses.mit;
27 maintainers = with maintainers; [ figsoda ];
28 mainProgram = "rq";
29 };
30}