nixpkgs-suyu/pkgs/applications/science/biology/mrbayes/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

29 lines
1.1 KiB
Nix

{lib, stdenv, fetchurl, readline}:
stdenv.mkDerivation rec {
# FIXME: replace Makefile so we can build MPI & MAC support
name = "mrbayes-3.1.2";
src = fetchurl {
url = "mirror://sourceforge/mrbayes/${name}.tar.gz";
sha256 = "1x7j8ca5wjrqrxmcpvd375ydm3s2pbkzykv8xfhg1jc037g560n6";
};
builder = ./builder.sh;
buildInputs = [readline];
meta = with lib; {
description = "Bayesian Inference of Phylogeny";
longDescription = ''
Bayesian inference of phylogeny is based upon a
quantity called the posterior probability distribution of trees, which is
the probability of a tree conditioned on the observations. The conditioning
is accomplished using Bayes's theorem. The posterior probability
distribution of trees is impossible to calculate analytically; instead,
MrBayes uses a simulation technique called Markov chain Monte Carlo (or
MCMC) to approximate the posterior probabilities of trees.
'';
license = licenses.gpl2;
homepage = "http://mrbayes.csit.fsu.edu/";
platforms = platforms.linux;
};
}