1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00

MPICH2 1.2.1.

svn path=/nixpkgs/trunk/; revision=19717
This commit is contained in:
Ludovic Courtès 2010-01-27 22:13:19 +00:00
parent 8e1668250c
commit 279d597082
2 changed files with 29 additions and 8 deletions

View file

@ -1,16 +1,34 @@
{stdenv, fetchurl, python}:
{ stdenv, fetchurl, python, perl }:
stdenv.mkDerivation rec {
name = "mpich2-1.0.6p1";
let version = "1.2.1"; in
stdenv.mkDerivation {
name = "mpich2-${version}";
src = fetchurl {
url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${name}.tar.gz";
sha256 = "1k0za8951j5fn89ww6bsy9b4yi989zz7bnd8a6acfr8r0yb8z01q";
url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${version}/mpich2-${version}.tar.gz";
sha256 = "1h91hygal4h33yci7sw76hibf803r9c0mx7kfgmc06h27xa3cirr";
};
buildInputs = [ python ];
buildInputs = [ python perl ];
patchPhase =
'' for i in $(find -type f -not -name Makefile.\*)
do
if grep -q /usr/bin/env "$i"
then
interpreter="$(cat $i | grep /usr/bin/env | sed -'es|^.*/usr/bin/env \([^ ]\+\).*$|\1|g')"
echo "file \`$i' -> interpreter \`$interpreter'"
path="$(type -P $interpreter)"
echo "\`/usr/bin/env $interpreter' -> \`$path' in \`$i'..."
sed -i "$i" -e "s|/usr/bin/env $interpreter|$path|g"
fi
done
true
'';
meta = {
description = "MPICH2, an implementation of the Message Passing Interface (MPI) standard";
longDescription = ''
MPICH2 is a free high-performance and portable implementation of
the Message Passing Interface (MPI) standard, both version 1 and
@ -18,5 +36,8 @@ stdenv.mkDerivation rec {
'';
homepage = http://www.mcs.anl.gov/mpi/mpich2/;
license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license";
maintainers = [ stdenv.lib.maintainers.ludo ];
platforms = stdenv.lib.platforms.unix;
};
}

View file

@ -4355,7 +4355,7 @@ let
};
mpich2 = import ../development/libraries/mpich2 {
inherit fetchurl stdenv python;
inherit fetchurl stdenv python perl;
};
muparser = import ../development/libraries/muparser {