nixpkgs/pkgs/by-name/gl/glaze/package.nix
2025-06-08 17:56:42 +04:00

29 lines
648 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
enableAvx2 ? false,
}:
stdenv.mkDerivation (final: {
pname = "glaze";
version = "5.4.0";
src = fetchFromGitHub {
owner = "stephenberry";
repo = "glaze";
tag = "v${final.version}";
hash = "sha256-AG6fnax9UZEhGtAUc8bgGijk8q7ge6lDTb0XjqL+kks=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ (lib.cmakeBool "glaze_ENABLE_AVX2" enableAvx2) ];
meta = {
description = "Extremely fast, in memory, JSON and interface library for modern C++";
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ moni ];
license = lib.licenses.mit;
};
})