diff --git a/pkgs/by-name/ha/hat-trie/package.nix b/pkgs/by-name/ha/hat-trie/package.nix new file mode 100644 index 000000000000..f2ae604bd2b4 --- /dev/null +++ b/pkgs/by-name/ha/hat-trie/package.nix @@ -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; + }; +})