summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-07-27 10:57:14 +0000
committerGitHub <noreply@github.com>2021-07-27 10:57:14 +0000
commit28d58fb25f8a8799878ac86d1433ebe40f5bac0f (patch)
treee5f55bec4d51a13e25346404c8733d259ee3168f /pkgs
parent882a4c15029388202abd1d8828314ad95a8779bf (diff)
parent108ad942fbd04abd08547864697825d1227a155f (diff)
downloadnixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar.gz
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar.bz2
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar.lz
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar.xz
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.tar.zst
nixpkgs-28d58fb25f8a8799878ac86d1433ebe40f5bac0f.zip
Merge pull request #131531 from SuperSandro2000/mrbayes
 mrbayes: modernize 
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/science/biology/mrbayes/builder.sh9
-rw-r--r--pkgs/applications/science/biology/mrbayes/default.nix23
2 files changed, 12 insertions, 20 deletions
diff --git a/pkgs/applications/science/biology/mrbayes/builder.sh b/pkgs/applications/science/biology/mrbayes/builder.sh
deleted file mode 100644
index 5b3a54946fc..00000000000
--- a/pkgs/applications/science/biology/mrbayes/builder.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-# builder for mrbayes - note: only builds on Unix
-
-source $stdenv/setup
-
-tar xvfz $src
-cd mrbayes-*
-make
-mkdir -p $out/bin
-cp -v mb $out/bin
diff --git a/pkgs/applications/science/biology/mrbayes/default.nix b/pkgs/applications/science/biology/mrbayes/default.nix
index 9acfea1a146..a9eb099780c 100644
--- a/pkgs/applications/science/biology/mrbayes/default.nix
+++ b/pkgs/applications/science/biology/mrbayes/default.nix
@@ -1,18 +1,18 @@
-{lib, stdenv, fetchurl, readline}:
+{ lib, stdenv, fetchFromGitHub, readline }:
 
 stdenv.mkDerivation rec {
-  # FIXME: replace Makefile so we can build MPI & MAC support
+  pname = "mrbayes";
+  version = "3.2.7";
 
-  name = "mrbayes-3.1.2";
-  src = fetchurl {
-    url = "mirror://sourceforge/mrbayes/${name}.tar.gz";
-    sha256 = "1x7j8ca5wjrqrxmcpvd375ydm3s2pbkzykv8xfhg1jc037g560n6";
+  src = fetchFromGitHub {
+    owner = "NBISweden";
+    repo = "MrBayes";
+    rev = "v${version}";
+    sha256 = "sha256-J0r4CxxQuZ3exvfCMRbLmyEd8ROaXNQG4afwiAs6H+M=";
   };
-  builder = ./builder.sh;
-  buildInputs = [readline];
 
   meta = with lib; {
-    description     = "Bayesian Inference of Phylogeny";
+    description = "Bayesian Inference of Phylogeny";
     longDescription = ''
       Bayesian inference of phylogeny is based upon a
       quantity called the posterior probability distribution of trees, which is
@@ -22,8 +22,9 @@ stdenv.mkDerivation rec {
       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/";
+    maintainers = with maintainers; [ ];
+    license = licenses.gpl2Plus;
+    homepage = "https://nbisweden.github.io/MrBayes/";
     platforms = platforms.linux;
   };
 }