mdds: fix compilation on darwin

This commit is contained in:
Sandro Jäckel 2020-11-25 18:30:52 +01:00
parent b73851877c
commit 803b6b9ab6
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost }: { stdenv, fetchurl, boost, llvmPackages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mdds"; pname = "mdds";
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
cp "$out/share/pkgconfig/"* "$out/lib/pkgconfig" cp "$out/share/pkgconfig/"* "$out/lib/pkgconfig"
''; '';
buildInputs = stdenv.lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
checkInputs = [ boost ]; checkInputs = [ boost ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
@ -21,7 +23,6 @@ stdenv.mkDerivation rec {
homepage = "https://gitlab.com/mdds/mdds"; homepage = "https://gitlab.com/mdds/mdds";
description = "A collection of multi-dimensional data structure and indexing algorithm"; description = "A collection of multi-dimensional data structure and indexing algorithm";
platforms = platforms.all; platforms = platforms.all;
broken = stdenv.isDarwin;
license = licenses.mit; license = licenses.mit;
}; };
} }