Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 35 lines 831 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, withSimd ? stdenv.isx86_64 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "rsonpath"; 10 version = "0.4.0"; 11 12 src = fetchFromGitHub { 13 owner = "v0ldek"; 14 repo = "rsonpath"; 15 rev = "v${version}"; 16 hash = "sha256-F52IUTfQ2h5z0+WeLNCCmX8vre58ayncW4/lxIwo/T8="; 17 }; 18 19 cargoHash = "sha256-WY6wXnPh0rgjSkNMWOeOCl//kHlDk0z6Gvnjax33nvE="; 20 21 buildNoDefaultFeatures = true; 22 buildFeatures = [ 23 "default-optimizations" 24 ] ++ lib.optionals withSimd [ 25 "simd" 26 ]; 27 28 meta = with lib; { 29 description = "Blazing fast Rust JSONPath query engine"; 30 homepage = "https://github.com/v0ldek/rsonpath"; 31 changelog = "https://github.com/v0ldek/rsonpath/blob/${src.rev}/CHANGELOG.md"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ figsoda ]; 34 }; 35}