From 37279cb3d66a5457280f975e3423abcdf0c88809 Mon Sep 17 00:00:00 2001 From: moni Date: Sun, 3 Nov 2024 08:04:28 +0800 Subject: [PATCH] glaze: init at 4.0.0 --- pkgs/by-name/gl/glaze/package.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/gl/glaze/package.nix diff --git a/pkgs/by-name/gl/glaze/package.nix b/pkgs/by-name/gl/glaze/package.nix new file mode 100644 index 000000000000..733a92774535 --- /dev/null +++ b/pkgs/by-name/gl/glaze/package.nix @@ -0,0 +1,29 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + avx2 ? false, +}: + +stdenv.mkDerivation (final: { + pname = "glaze"; + version = "4.0.0"; + + src = fetchFromGitHub { + owner = "stephenberry"; + repo = "glaze"; + rev = "v${final.version}"; + hash = "sha256-zaGKYEnYTyAhtP0Hywxp8Y33wvjB1RkEoOGF41CaVnY"; + }; + + nativeBuildInputs = [ cmake ]; + cmakeFlags = [ "-Dglaze_ENABLE_AVX2=${if avx2 then "ON" else "OFF"}" ]; + + 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; + }; +})