mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
30 lines
646 B
Nix
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;
|
|
};
|
|
})
|