hat-trie: init at 0.7.1

This commit is contained in:
XYenon
2026-02-27 11:39:37 +08:00
parent ea27be4406
commit ff90b2c119

View File

@@ -0,0 +1,39 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "hat-trie";
version = "0.7.1";
src = fetchFromGitHub {
owner = "Tessil";
repo = "hat-trie";
tag = "v${finalAttrs.version}";
hash = "sha256-5L3qSlwYc2G60GPFrEz06eAWdUcdBQTVBLLOf1sLP0c=";
};
__structuredAttrs = true;
strictDeps = true;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/include
cp -r include/tsl $out/include/
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "C++ implementation of a fast and memory efficient HAT-trie";
homepage = "https://github.com/Tessil/hat-trie";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xyenon ];
platforms = lib.platforms.all;
};
})