2020-04-24 23:36:52 +00:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "4.9j";
|
|
|
|
pname = "paml";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://abacus.gene.ucl.ac.uk/software/paml${version}.tgz";
|
|
|
|
sha256 = "0qflf3i27x6jwks3c6q560m1q8r043ja96syah145113iz5wdalp";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: /build/ccKomtcd.o:(.bss+0x4544): multiple definition of `SeqTypes';
|
|
|
|
# /build/ccx7EsgU.o:(.bss+0x2a0dfdc): first defined here
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preBuild = ''
|
|
|
|
cd ./src/
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp -v codeml $out/bin
|
|
|
|
cp -v baseml $out/bin
|
|
|
|
cp -v basemlg $out/bin
|
|
|
|
cp -v chi2 $out/bin
|
|
|
|
cp -v codeml $out/bin
|
|
|
|
cp -v evolver $out/bin
|
|
|
|
cp -v mcmctree $out/bin
|
|
|
|
cp -v pamp $out/bin
|
|
|
|
cp -v yn00 $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Phylogenetic Analysis by Maximum Likelihood (PAML)";
|
2021-02-05 17:12:51 +00:00
|
|
|
longDescription = "PAML is a package of programs for phylogenetic analyses of DNA or protein sequences using maximum likelihood. It is maintained and distributed for academic use free of charge by Ziheng Yang. ANSI C source codes are distributed for UNIX/Linux/Mac OSX, and executables are provided for MS Windows. PAML is not good for tree making. It may be used to estimate parameters and test hypotheses to study the evolutionary process, when you have reconstructed trees using other programs such as PAUP*, PHYLIP, MOLPHY, PhyML, RaxML, etc.";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = "non-commercial";
|
|
|
|
homepage = "http://abacus.gene.ucl.ac.uk/software/paml.html";
|
|
|
|
};
|
|
|
|
}
|