nixpkgs/pkgs/by-name/gl/glaze/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
648 B
Nix
Raw Normal View History

2024-11-03 08:04:28 +08:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
2024-11-03 08:51:42 +08:00
enableAvx2 ? false,
2024-11-03 08:04:28 +08:00
}:
stdenv.mkDerivation (final: {
pname = "glaze";
2025-08-04 21:41:38 +00:00
version = "5.5.5";
2024-11-03 08:04:28 +08:00
src = fetchFromGitHub {
owner = "stephenberry";
repo = "glaze";
2025-06-08 17:56:42 +04:00
tag = "v${final.version}";
2025-08-04 21:41:38 +00:00
hash = "sha256-vFAMS4sZ3/KKeKHGzTnTujh076eML35bWqxUuzTap+8=";
2024-11-03 08:04:28 +08:00
};
nativeBuildInputs = [ cmake ];
2024-11-03 08:51:42 +08:00
cmakeFlags = [ (lib.cmakeBool "glaze_ENABLE_AVX2" enableAvx2) ];
2024-11-03 08:04:28 +08:00
2025-06-08 17:56:42 +04:00
meta = {
2024-11-03 08:04:28 +08:00
description = "Extremely fast, in memory, JSON and interface library for modern C++";
2025-06-08 17:56:42 +04:00
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ moni ];
license = lib.licenses.mit;
2024-11-03 08:04:28 +08:00
};
})