2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-12-14 01:08:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "simdjson";
|
2021-10-29 00:22:33 +02:00
|
|
|
version = "1.0.1";
|
2020-12-14 01:08:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simdjson";
|
|
|
|
repo = "simdjson";
|
|
|
|
rev = "v${version}";
|
2021-10-29 00:22:33 +02:00
|
|
|
sha256 = "sha256-NpRpF+1tzPEjBo6i1GxACeAMDn+WEX8C80vInNffqug=";
|
2020-12-14 01:08:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSIMDJSON_JUST_LIBRARY=ON"
|
2021-01-23 13:11:14 +01:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isStatic "-DSIMDJSON_BUILD_STATIC=ON";
|
2020-12-14 01:08:14 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-12-14 01:08:14 +01:00
|
|
|
homepage = "https://simdjson.org/";
|
|
|
|
description = "Parsing gigabytes of JSON per second";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ chessai ];
|
|
|
|
};
|
|
|
|
}
|