Skip to content

Commit

Permalink
Merge pull request #223333 from figsoda/rsonpath
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda authored Mar 27, 2023
2 parents 16f67c4 + 2799851 commit 80bbc6e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkgs/development/tools/misc/rsonpath/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, rustPlatform
, fetchFromGitHub
, withSimd ? true
, stdenv
}:

rustPlatform.buildRustPackage rec {
pname = "rsonpath";
version = "0.3.2";

src = fetchFromGitHub {
owner = "v0ldek";
repo = "rsonpath";
rev = "v${version}";
hash = "sha256-ip8+Wy9rmTzFccmjYWb3Nk+gkq3g4e1ty/5+ldIOO10=";
};

cargoHash = "sha256-5V0H2FeHI1SByzLsviOR+qHwYhZGiNmMawCTYjk2P24=";

buildNoDefaultFeatures = true;
buildFeatures = [
"default-optimizations"
] ++ lib.optionals withSimd [
"simd"
];

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 ];
# build fails on platforms without simd support, even when withSimd = false
broken = !stdenv.isx86_64;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18733,6 +18733,8 @@ with pkgs;

rsass = callPackage ../development/tools/misc/rsass { };

rsonpath = callPackage ../development/tools/misc/rsonpath { };

rufo = callPackage ../development/tools/rufo { };

samurai = callPackage ../development/tools/build-managers/samurai { };
Expand Down

0 comments on commit 80bbc6e

Please sign in to comment.