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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.3.4";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iqtree";
|
|
|
|
repo = "iqtree2";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-dnUFllqcABB3JDYoCwPGtIYD/h5lzX2XKOroDpijPpU=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "iqtree2";
|
2022-09-09 14:08:57 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|