blob: b438827513e51f4d2376455efa0a0864d32d3bbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
stdenv,
lib,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "interval-tree";
version = "3.1.4";
src = fetchFromGitHub {
owner = "5cript";
repo = "interval-tree";
tag = "v${finalAttrs.version}";
hash = "sha256-IOIp60mu1QXoizhFHsLIqTDBphPy0MwzqhkyWhxpz5g=";
};
# 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;
};
})
|