memtailor: init at 1.3

(cherry picked from commit a513b83ffc)
This commit is contained in:
coolcuber
2026-04-29 15:24:42 -04:00
parent a16f886f04
commit b6b60bdfb7

View File

@@ -0,0 +1,55 @@
{
lib,
fetchFromGitHub,
stdenv,
autoreconfHook,
gtest,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "memtailor";
version = "1.3";
src = fetchFromGitHub {
owner = "Macaulay2";
repo = "memtailor";
tag = "v${finalAttrs.version}";
hash = "sha256-x6z/BzU78od21l72ZAnX37UHHdyMHfJ6cjwJwNYOIcY=";
};
nativeBuildInputs = [
autoreconfHook
];
checkInputs = [
gtest
];
__structuredAttrs = true;
strictDeps = true;
configureFlags = [
(lib.withFeature finalAttrs.doCheck "gtest")
];
enableParallelBuilding = true;
doCheck = true;
meta = {
description = "C++ library of special purpose memory allocators";
longDescription = ''
Memtailor is a C++ library of special purpose memory allocators. It
currently offers an arena allocator and a memory pool.
The main motivation to use a memtailor allocator is better and more
predictable performance than you get with new/delete. Sometimes a
memtailor allocator can also be more convenient due to the ability to
free many allocations at one time.
'';
homepage = "https://github.com/Macaulay2/memtailor";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ coolcuber ];
};
})