2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, llvmPackages
|
|
|
|
}:
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "veryfasttree";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "4.0.3";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "citiususc";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "veryfasttree";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Sp331VJRaYv/BTwFj3HwUcUsWjYf6YEXWjYdOzDhBBA=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2023-08-04 22:07:22 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
install -m755 -D VeryFastTree $out/bin/VeryFastTree
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2022-11-27 09:42:12 +00:00
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = {
|
2022-11-27 09:42:12 +00:00
|
|
|
description = "Speeding up the estimation of phylogenetic trees for large alignments through parallelization and vectorization strategies";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/citiususc/veryfasttree";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ thyol ];
|
|
|
|
platforms = lib.platforms.all;
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|