interval-tree: init at 3.1.1 (#533356)

This commit is contained in:
Sandro
2026-07-01 16:24:11 +00:00
committed by GitHub

View File

@@ -0,0 +1,43 @@
{
stdenv,
lib,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "interval-tree";
version = "3.1.1";
src = fetchFromGitHub {
owner = "5cript";
repo = "interval-tree";
tag = "v${finalAttrs.version}";
hash = "sha256-bSZ56EzzNy6gHgs8OptT/iBlf56RJz+09BE4WGGJpog=";
};
# interval-tree is a header only library
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/
cp -r $src/include/ $out/
runHook postInstall
'';
__structuredAttrs = true;
strictDeps = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "C++ header only interval tree implementation";
maintainers = with lib.maintainers; [ aiyion ];
homepage = "https://github.com/5cript/interval-tree";
license = lib.licenses.cc0;
platforms = lib.platforms.all;
};
})