From 4050f8fa459d392c61aaf28a5a85212a5c0033f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Thu, 21 Feb 2008 16:17:43 +0000
Subject: [PATCH] Add MPICH2, an implementation of the Message Passing
 Interface.

svn path=/nixpkgs/trunk/; revision=10807
---
 pkgs/development/libraries/mpich2/default.nix | 20 +++++++++++++++++++
 pkgs/top-level/all-packages.nix               |  4 ++++
 2 files changed, 24 insertions(+)
 create mode 100644 pkgs/development/libraries/mpich2/default.nix

diff --git a/pkgs/development/libraries/mpich2/default.nix b/pkgs/development/libraries/mpich2/default.nix
new file mode 100644
index 000000000000..b92eed68bdea
--- /dev/null
+++ b/pkgs/development/libraries/mpich2/default.nix
@@ -0,0 +1,20 @@
+{stdenv, fetchurl, python}:
+
+stdenv.mkDerivation rec {
+  name = "mpich2-1.0.6p1";
+  src = fetchurl {
+    url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/"
+      + name + ".tar.gz";
+    sha256 = "1k0za8951j5fn89ww6bsy9b4yi989zz7bnd8a6acfr8r0yb8z01q";
+  };
+
+  buildInputs = [ python ];
+
+  meta = {
+    description = ''MPICH2 is a free high-performance and portable
+                    implementation of the Message Passing Interface
+		    (MPI) standard, both version 1 and version 2.'';
+    homepage = http://www.mcs.anl.gov/mpi/mpich2/;
+    license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9ef5d47c0adb..e6e547636ecc 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2788,6 +2788,10 @@ rec {
     inherit fetchurl stdenv;
   };
 
+  mpich2 = import ../development/libraries/mpich2 {
+    inherit fetchurl stdenv python;
+  };
+
   mysqlConnectorODBC = import ../development/libraries/mysql-connector-odbc {
     inherit fetchurl stdenv mysql libtool zlib unixODBC;
   };