nixpkgs/pkgs/by-name/ra/raxml/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

41 lines
1.0 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, useMpi ? false
, mpi
}:
stdenv.mkDerivation rec {
pname = "RAxML${lib.optionalString useMpi "-mpi"}";
version = "8.2.13";
src = fetchFromGitHub {
owner = "stamatak";
repo = "standard-RAxML";
rev = "v${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
'';
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 = with lib; {
description = "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" ];
};
}