2022-12-17 10:02:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoreconfHook, boost, llvmPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mdds";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "mdds";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-jCzF0REocpnP56LfY42zlGTXyKyz4GPovDshhrh4jyo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/lib/pkgconfig"
|
|
|
|
cp "$out/share/pkgconfig/"* "$out/lib/pkgconfig"
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ boost ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A collection of multi-dimensional data structure and indexing algorithm";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://gitlab.com/mdds/mdds";
|
|
|
|
maintainers = [];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-12-17 10:02:37 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|