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-07-15 17:15:38 +00:00
|
|
|
version = "2.2.2.6";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iqtree";
|
|
|
|
repo = "iqtree2";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-dce7JOPZaosRP99/xRfz88EwXR9nYXK6Z4t2i5Uje1w=";
|
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
|
|
|
};
|
|
|
|
}
|