depot/third_party/nixpkgs/pkgs/applications/science/biology/veryfasttree/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

38 lines
943 B
Nix

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