2023-01-11 07:51:40 +00:00
|
|
|
{ lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitLab,
|
|
|
|
autoreconfHook,
|
|
|
|
boost,
|
|
|
|
llvmPackages,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mdds";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "mdds";
|
2023-01-11 07:51:40 +00:00
|
|
|
repo = "mdds";
|
|
|
|
rev = finalAttrs.version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-a412LpgDiYM8TMToaUrTlHtblYS1HehzrDOwvIAAxiA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ boost ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/
|
|
|
|
mv $out/share/pkgconfig $out/lib/
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://gitlab.com/mdds/mdds";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Collection of multi-dimensional data structure and indexing algorithms";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://gitlab.com/mdds/mdds/-/blob/${finalAttrs.version}/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
})
|
|
|
|
# TODO: multi-output
|