nixpkgs/pkgs/applications/science/biology/veryfasttree/default.nix
2023-07-03 12:29:44 +03:00

29 lines
832 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages}:
stdenv.mkDerivation rec {
pname = "veryfasttree";
version = "4.0";
src = fetchFromGitHub {
owner = "citiususc";
repo = pname;
rev = "v${version}";
hash = "sha256-ue3/2UTIQA6av+66xvGApLi9x0kM5vAmGHHTrboOaeQ=";
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.cc.isClang llvmPackages.openmp;
installPhase = ''
install -m755 -D VeryFastTree $out/bin/VeryFastTree
'';
meta = with lib; {
description = "Speeding up the estimation of phylogenetic trees for large alignments through parallelization and vectorization strategies";
license = licenses.gpl3Plus;
homepage = "https://github.com/citiususc/veryfasttree";
maintainers = with maintainers; [ thyol ];
platforms = platforms.all;
};
}