3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/simdjson/default.nix

28 lines
684 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
2020-12-14 00:08:14 +00:00
stdenv.mkDerivation rec {
pname = "simdjson";
2021-02-11 23:08:35 +00:00
version = "0.8.2";
2020-12-14 00:08:14 +00:00
src = fetchFromGitHub {
owner = "simdjson";
repo = "simdjson";
rev = "v${version}";
2021-02-11 23:08:35 +00:00
sha256 = "sha256-azRuLB03NvW+brw7A/kbgkjoDUlk1p7Ch4zZD55QiMQ=";
2020-12-14 00:08:14 +00:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DSIMDJSON_JUST_LIBRARY=ON"
2021-01-23 12:11:14 +00:00
] ++ lib.optional stdenv.hostPlatform.isStatic "-DSIMDJSON_BUILD_STATIC=ON";
2020-12-14 00:08:14 +00:00
meta = with lib; {
2020-12-14 00:08:14 +00:00
homepage = "https://simdjson.org/";
description = "Parsing gigabytes of JSON per second";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ chessai ];
};
}