mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
useMpi ? false,
|
|
mpi,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "RAxML${lib.optionalString useMpi "-mpi"}";
|
|
version = "8.2.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stamatak";
|
|
repo = "standard-RAxML";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-w+Eqi0GhVira1H6ZnMNeZGBMzDjiGT7JSFpQEVXONyk=";
|
|
};
|
|
|
|
buildInputs = lib.optionals useMpi [ mpi ];
|
|
|
|
# TODO darwin, AVX and AVX2 makefile targets
|
|
buildPhase =
|
|
if useMpi then
|
|
''
|
|
make -f Makefile.MPI.gcc
|
|
''
|
|
else
|
|
''
|
|
make -f Makefile.SSE3.PTHREADS.gcc
|
|
'';
|
|
|
|
# Fix build with gcc15 (-std=gnu23)
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu17";
|
|
|
|
installPhase =
|
|
if useMpi then
|
|
''
|
|
mkdir -p $out/bin && cp raxmlHPC-MPI $out/bin
|
|
''
|
|
else
|
|
''
|
|
mkdir -p $out/bin && cp raxmlHPC-PTHREADS-SSE3 $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies";
|
|
license = lib.licenses.gpl3;
|
|
homepage = "https://sco.h-its.org/exelixis/web/software/raxml/";
|
|
maintainers = [ lib.maintainers.unode ];
|
|
platforms = [
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
];
|
|
};
|
|
})
|