9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
39 lines
931 B
Nix
39 lines
931 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, withSimd ? stdenv.isx86_64
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rsonpath";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "v0ldek";
|
|
repo = "rsonpath";
|
|
rev = "v${version}";
|
|
hash = "sha256-1fopV2qWbWoCH5cT3s6vLxNTv5LgBm8bug0MJ9p7NmU=";
|
|
};
|
|
|
|
cargoHash = "sha256-4IFhUIP5MWNYoHoVi9tjRRzQrsdduiCnmVde5gctdsY=";
|
|
|
|
buildNoDefaultFeatures = true;
|
|
buildFeatures = [
|
|
"default-optimizations"
|
|
] ++ lib.optionals withSimd [
|
|
"simd"
|
|
];
|
|
|
|
cargoBuildFlags = [ "-p=rsonpath" ];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
meta = with lib; {
|
|
description = "Blazing fast Rust JSONPath query engine";
|
|
homepage = "https://github.com/v0ldek/rsonpath";
|
|
changelog = "https://github.com/v0ldek/rsonpath/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "rq";
|
|
};
|
|
}
|