depot/third_party/nixpkgs/pkgs/development/libraries/simdjson/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

27 lines
684 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "simdjson";
version = "2.2.2";
src = fetchFromGitHub {
owner = "simdjson";
repo = "simdjson";
rev = "v${version}";
sha256 = "sha256-PU6yTA2FXHcuSwr6oIU+cP7uYxkgggnj3FV2LbkS69w=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DSIMDJSON_DEVELOPER_MODE=OFF"
] ++ lib.optional stdenv.hostPlatform.isStatic "-DBUILD_SHARED_LIBS=OFF";
meta = with lib; {
homepage = "https://simdjson.org/";
description = "Parsing gigabytes of JSON per second";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ chessai ];
};
}