mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
43 lines
882 B
Nix
43 lines
882 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "interval-tree";
|
|
version = "3.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "5cript";
|
|
repo = "interval-tree";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-t1/oTr+sYkpTiDzaM4SxUcWzO3r24EkUJO04TYNLcQQ=";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
})
|