depot/third_party/nixpkgs/pkgs/development/libraries/mdds/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
949 B
Nix

{ lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
boost,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mdds";
version = "2.1.1";
src = fetchFromGitLab {
owner = "mdds";
repo = "mdds";
rev = finalAttrs.version;
hash = "sha256-a412LpgDiYM8TMToaUrTlHtblYS1HehzrDOwvIAAxiA=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
nativeCheckInputs = [ boost ];
postInstall = ''
mkdir -p $out/lib/
mv $out/share/pkgconfig $out/lib/
'';
meta = with lib; {
homepage = "https://gitlab.com/mdds/mdds";
description = "Collection of multi-dimensional data structure and indexing algorithms";
changelog = "https://gitlab.com/mdds/mdds/-/blob/${finalAttrs.version}/CHANGELOG";
license = licenses.mit;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix;
};
})
# TODO: multi-output