1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 useMpi ? false,
6 mpi,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "RAxML${lib.optionalString useMpi "-mpi"}";
11 version = "8.2.13";
12
13 src = fetchFromGitHub {
14 owner = "stamatak";
15 repo = "standard-RAxML";
16 rev = "v${version}";
17 sha256 = "sha256-w+Eqi0GhVira1H6ZnMNeZGBMzDjiGT7JSFpQEVXONyk=";
18 };
19
20 buildInputs = lib.optionals useMpi [ mpi ];
21
22 # TODO darwin, AVX and AVX2 makefile targets
23 buildPhase =
24 if useMpi then
25 ''
26 make -f Makefile.MPI.gcc
27 ''
28 else
29 ''
30 make -f Makefile.SSE3.PTHREADS.gcc
31 '';
32
33 installPhase =
34 if useMpi then
35 ''
36 mkdir -p $out/bin && cp raxmlHPC-MPI $out/bin
37 ''
38 else
39 ''
40 mkdir -p $out/bin && cp raxmlHPC-PTHREADS-SSE3 $out/bin
41 '';
42
43 meta = with lib; {
44 description = "Tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies";
45 license = licenses.gpl3;
46 homepage = "https://sco.h-its.org/exelixis/web/software/raxml/";
47 maintainers = [ maintainers.unode ];
48 platforms = [
49 "i686-linux"
50 "x86_64-linux"
51 ];
52 };
53}