Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
30 lines
646 B
Nix
30 lines
646 B
Nix
{
|
|||
lib,
|
|||
stdenv,
|
|||
fetchFromGitHub,
|
|||
cmake,
|
|||
enableAvx2 ? false,
|
|||
}:
|
|||
|
|||
stdenv.mkDerivation (final: {
|
|||
pname = "glaze";
|
|||
version = "4.0.1";
|
|||
|
|||
src = fetchFromGitHub {
|
|||
owner = "stephenberry";
|
|||
repo = "glaze";
|
|||
rev = "v${final.version}";
|
|||
hash = "sha256-gQfRz7b1kbn1AoKUNG62LBynmJNbDTXzPXaX6kDCjVw=";
|
|||
};
|
|||
|
|||
nativeBuildInputs = [ cmake ];
|
|||
cmakeFlags = [ (lib.cmakeBool "glaze_ENABLE_AVX2" enableAvx2) ];
|
|||
|
|||
meta = with lib; {
|
|||
description = "Extremely fast, in memory, JSON and interface library for modern C++";
|
|||
platforms = platforms.all;
|
|||
maintainers = with maintainers; [ moni ];
|
|||
license = licenses.mit;
|
|||
};
|
|||
})
|