acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / gl / glaze / package.nix
blob2ac4ad856fab4deb2ee65f41ec0ba6a0e3d906c5
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   enableAvx2 ? false,
7 }:
9 stdenv.mkDerivation (final: {
10   pname = "glaze";
11   version = "4.0.1";
13   src = fetchFromGitHub {
14     owner = "stephenberry";
15     repo = "glaze";
16     rev = "v${final.version}";
17     hash = "sha256-gQfRz7b1kbn1AoKUNG62LBynmJNbDTXzPXaX6kDCjVw=";
18   };
20   nativeBuildInputs = [ cmake ];
21   cmakeFlags = [ (lib.cmakeBool "glaze_ENABLE_AVX2" enableAvx2) ];
23   meta = with lib; {
24     description = "Extremely fast, in memory, JSON and interface library for modern C++";
25     platforms = platforms.all;
26     maintainers = with maintainers; [ moni ];
27     license = licenses.mit;
28   };