2023-03-30 22:05:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, withSimd ? stdenv.isx86_64
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rsonpath";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.6.1";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "v0ldek";
|
|
|
|
repo = "rsonpath";
|
|
|
|
rev = "v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-3ncaO7B3e4F2LFj1IjHvOyoWXBYQM69vPfPnsBr+tKI=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
cargoHash = "sha256-EjifSABhowk3PSQTuAm8+xRYbc0OwdqHMb9o/z1yuP0=";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
buildNoDefaultFeatures = !withSimd;
|
2023-03-30 22:05:00 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoBuildFlags = [ "-p=rsonpath" ];
|
|
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
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 ];
|
2023-07-15 17:15:38 +00:00
|
|
|
mainProgram = "rq";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
}
|