veryfasttree: fix build on darwin

This commit is contained in:
Weijia Wang 2023-07-03 12:29:44 +03:00
parent cb16c50571
commit 82d4f6b43d

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages}:
stdenv.mkDerivation rec {
pname = "veryfasttree";
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
installPhase = ''
install -m755 -D VeryFastTree $out/bin/VeryFastTree
@ -22,5 +23,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
homepage = "https://github.com/citiususc/veryfasttree";
maintainers = with maintainers; [ thyol ];
platforms = platforms.all;
};
}