2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, eigen
|
|
|
|
, zlib
|
2023-05-24 13:37:59 +00:00
|
|
|
, llvmPackages
|
2022-09-09 14:08:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iqtree";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.2.2.7";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iqtree";
|
|
|
|
repo = "iqtree2";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-XyjVo5TYMoB+ZOAGc4ivYqFGnEO1M7mhxXrG45TP44Y=";
|
2022-09-09 14:08:57 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
llvmPackages.openmp
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.iqtree.org/";
|
|
|
|
description = "Efficient and versatile phylogenomic software by maximum likelihood";
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ bzizou ];
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
}
|