nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 unstableGitUpdater,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "rsonpath";
10 version = "0.9.1-unstable-2024-11-15";
11
12 src = fetchFromGitHub {
13 owner = "rsonquery";
14 repo = "rsonpath";
15 rev = "979e6374a68747dfba7b87b61bbe77951f749659";
16 hash = "sha256-YQCbkdv7PRf5hVXAGUg6DrtaCLIyS9nUGXsl8XHpKZU=";
17 };
18
19 passthru.updateScript = unstableGitUpdater {
20 tagPrefix = "v";
21 };
22
23 cargoHash = "sha256-9pSn0f0VWsBg1z1UYGRtMb1z23htRm7qLmO80zvSjN8=";
24
25 cargoBuildFlags = [ "-p=rsonpath" ];
26 cargoTestFlags = cargoBuildFlags;
27
28 meta = {
29 description = "Experimental JSONPath engine for querying massive streamed datasets";
30 homepage = "https://github.com/v0ldek/rsonpath";
31 changelog = "https://github.com/v0ldek/rsonpath/blob/${src.rev}/CHANGELOG.md";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ figsoda ];
34 mainProgram = "rq";
35 };
36}