nixpkgs/pkgs/applications/science/biology/raxml/default.nix
R. RyanTM d97f7d3b89 raxml: 8.2.11 -> 8.2.12 (#41964)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/RAxML/versions.

These checks were done:

- built on NixOS
- /nix/store/w8iy7fvdwhjw7zx1dkga3v56fz59s7r8-RAxML-8.2.12/bin/raxmlHPC-PTHREADS-SSE3 passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 8.2.12 with grep in /nix/store/w8iy7fvdwhjw7zx1dkga3v56fz59s7r8-RAxML-8.2.12
- directory tree listing: https://gist.github.com/8a2b70b299e53bfee9f18d2ab8cd5f9f
- du listing: https://gist.github.com/02803409663f19671adc6be233a327fd
2018-06-18 22:40:49 +02:00

42 lines
1 KiB
Nix

{ stdenv
, fetchFromGitHub
, zlib
, pkgs
, mpi ? false
}:
stdenv.mkDerivation rec {
pname = "RAxML";
version = "8.2.12";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "stamatak";
repo = "standard-${pname}";
rev = "v${version}";
sha256 = "1jqjzhch0rips0vp04prvb8vmc20c5pdmsqn8knadcf91yy859fh";
};
buildInputs = if mpi then [ pkgs.openmpi ] else [];
# TODO darwin, AVX and AVX2 makefile targets
buildPhase = if mpi then ''
make -f Makefile.MPI.gcc
'' else ''
make -f Makefile.SSE3.PTHREADS.gcc
'';
installPhase = if mpi then ''
mkdir -p $out/bin && cp raxmlHPC-MPI $out/bin
'' else ''
mkdir -p $out/bin && cp raxmlHPC-PTHREADS-SSE3 $out/bin
'';
meta = with stdenv.lib; {
description = "A tool for Phylogenetic Analysis and Post-Analysis of Large Phylogenies";
license = licenses.gpl3;
homepage = https://sco.h-its.org/exelixis/web/software/raxml/;
maintainers = [ maintainers.unode ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}