a71eb02b76
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
27 lines
684 B
Nix
27 lines
684 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "simdjson";
|
|
version = "3.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simdjson";
|
|
repo = "simdjson";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-e5u9+H4rILIDpnZxzVV9wbjhR9tRqnf11i2Kn39DTzo=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|