btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / rs / rsonpath / package.nix
blob02a867788a4b79f5fcd9540eba70c384f1a42434
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "rsonpath";
8   version = "0.9.1";
10   src = fetchFromGitHub {
11     owner = "v0ldek";
12     repo = "rsonpath";
13     rev = "v${version}";
14     hash = "sha256-3q0q9Bj/DPuDmHu2G9jrABFXU8xgbUUS7iTBguVWR5s=";
15   };
17   cargoHash = "sha256-bh72u1AvM6bGNQCjyu6GdAiK0jw5lE0SIdYzaZEjYg8=";
19   cargoBuildFlags = [ "-p=rsonpath" ];
20   cargoTestFlags = cargoBuildFlags;
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   };