2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, useMpi ? false
|
|
|
|
, mpi
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
pname = "RAxML${lib.optionalString useMpi "-mpi"}";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "8.2.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stamatak";
|
2022-03-05 16:20:37 +00:00
|
|
|
repo = "standard-RAxML";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-w+Eqi0GhVira1H6ZnMNeZGBMzDjiGT7JSFpQEVXONyk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optionals useMpi [ mpi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# TODO darwin, AVX and AVX2 makefile targets
|
2021-02-05 17:12:51 +00:00
|
|
|
buildPhase = if useMpi then ''
|
2020-04-24 23:36:52 +00:00
|
|
|
make -f Makefile.MPI.gcc
|
|
|
|
'' else ''
|
|
|
|
make -f Makefile.SSE3.PTHREADS.gcc
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
installPhase = if useMpi then ''
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/bin && cp raxmlHPC-MPI $out/bin
|
|
|
|
'' else ''
|
|
|
|
mkdir -p $out/bin && cp raxmlHPC-PTHREADS-SSE3 $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://sco.h-its.org/exelixis/web/software/raxml/";
|
|
|
|
maintainers = [ maintainers.unode ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|