git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #131531 from SuperSandro2000/mrbayes

mrbayes: modernize

commit28d58fb25f8a8799878ac86d1433ebe40f5bac0f authorSandro <sandro.jaeckel@gmail.com> dateTue 27 Jul 2021, 10:57 (5 years ago) parent882a4c1108ad94
2 files changed+12−20
pkgs/applications/science/biology/mrbayes/builder.sh−9 pkgs/applications/science/biology/mrbayes/default.nix+12−11
pkgs/applications/science/biology/mrbayes/builder.shdeleted−9
@@ -1,9 +0,0 @@
1−# builder for mrbayes - note: only builds on Unix
2−
3−source $stdenv/setup
4−
5−tar xvfz $src
6−cd mrbayes-*
7−make
8−mkdir -p $out/bin
9−cp -v mb $out/bin
pkgs/applications/science/biology/mrbayes/default.nix+12−11
@@ -1,18 +1,18 @@
1−{lib, stdenv, fetchurl, readline}:
1+{ lib, stdenv, fetchFromGitHub, readline }:
22
33stdenv.mkDerivation rec {
4− # FIXME: replace Makefile so we can build MPI & MAC support
4+ pname = "mrbayes";
5+ version = "3.2.7";
56
6− name = "mrbayes-3.1.2";
7− src = fetchurl {
8− url = "mirror://sourceforge/mrbayes/${name}.tar.gz";
9− sha256 = "1x7j8ca5wjrqrxmcpvd375ydm3s2pbkzykv8xfhg1jc037g560n6";
7+ src = fetchFromGitHub {
8+ owner = "NBISweden";
9+ repo = "MrBayes";
10+ rev = "v${version}";
11+ sha256 = "sha256-J0r4CxxQuZ3exvfCMRbLmyEd8ROaXNQG4afwiAs6H+M=";
1012 };
11− builder = ./builder.sh;
12− buildInputs = [readline];
1313
1414 meta = with lib; {
15− description = "Bayesian Inference of Phylogeny";
15+ description = "Bayesian Inference of Phylogeny";
1616 longDescription = ''
1717 Bayesian inference of phylogeny is based upon a
1818 quantity called the posterior probability distribution of trees, which is
@@ -22,8 +22,9 @@ stdenv.mkDerivation rec {
2222 MrBayes uses a simulation technique called Markov chain Monte Carlo (or
2323 MCMC) to approximate the posterior probabilities of trees.
2424 '';
25− license = licenses.gpl2;
26− homepage = "http://mrbayes.csit.fsu.edu/";
25+ maintainers = with maintainers; [ ];
26+ license = licenses.gpl2Plus;
27+ homepage = "https://nbisweden.github.io/MrBayes/";
2728 platforms = platforms.linux;
2829 };
2930}