2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-02-02 02:24:19 +01:00
|
|
|
, fetchFromGitHub
|
2021-01-10 13:40:19 +01:00
|
|
|
, useMpi ? false
|
|
|
|
, mpi
|
2018-02-02 02:24:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "RAxML";
|
2018-06-18 22:40:49 +02:00
|
|
|
version = "8.2.12";
|
2018-02-02 02:24:19 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stamatak";
|
|
|
|
repo = "standard-${pname}";
|
|
|
|
rev = "v${version}";
|
2018-06-18 22:40:49 +02:00
|
|
|
sha256 = "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh";
|
2018-02-02 02:24:19 +01:00
|
|
|
};
|
|
|
|
|
2021-01-10 13:40:19 +01:00
|
|
|
buildInputs = lib.optionals useMpi [ mpi ];
|
2018-02-02 02:24:19 +01:00
|
|
|
|
|
|
|
# TODO darwin, AVX and AVX2 makefile targets
|
2021-01-10 13:40:19 +01:00
|
|
|
buildPhase = if useMpi then ''
|
2018-02-02 02:24:19 +01:00
|
|
|
make -f Makefile.MPI.gcc
|
|
|
|
'' else ''
|
|
|
|
make -f Makefile.SSE3.PTHREADS.gcc
|
|
|
|
'';
|
|
|
|
|
2021-01-10 13:40:19 +01:00
|
|
|
installPhase = if useMpi then ''
|
2018-02-02 02:24:19 +01:00
|
|
|
mkdir -p $out/bin && cp raxmlHPC-MPI $out/bin
|
|
|
|
'' else ''
|
|
|
|
mkdir -p $out/bin && cp raxmlHPC-PTHREADS-SSE3 $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-02 02:24:19 +01:00
|
|
|
description = "A tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies";
|
|
|
|
license = licenses.gpl3;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sco.h-its.org/exelixis/web/software/raxml/";
|
2018-02-02 02:24:19 +01:00
|
|
|
maintainers = [ maintainers.unode ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|