nixpkgs/pkgs/by-name/gl/glaze/package.nix
2024-11-23 14:56:20 +00:00

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;
};
})