MPICH2 1.2.1.

svn path=/nixpkgs/trunk/; revision=19717

+29 -8
+28 -7
pkgs/development/libraries/mpich2/default.nix
··· 1 - {stdenv, fetchurl, python}: 1 + { stdenv, fetchurl, python, perl }: 2 + 3 + let version = "1.2.1"; in 4 + stdenv.mkDerivation { 5 + name = "mpich2-${version}"; 2 6 3 - stdenv.mkDerivation rec { 4 - name = "mpich2-1.0.6p1"; 5 - 6 7 src = fetchurl { 7 - url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${name}.tar.gz"; 8 - sha256 = "1k0za8951j5fn89ww6bsy9b4yi989zz7bnd8a6acfr8r0yb8z01q"; 8 + url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${version}/mpich2-${version}.tar.gz"; 9 + sha256 = "1h91hygal4h33yci7sw76hibf803r9c0mx7kfgmc06h27xa3cirr"; 9 10 }; 10 11 11 - buildInputs = [ python ]; 12 + buildInputs = [ python perl ]; 13 + 14 + patchPhase = 15 + '' for i in $(find -type f -not -name Makefile.\*) 16 + do 17 + if grep -q /usr/bin/env "$i" 18 + then 19 + interpreter="$(cat $i | grep /usr/bin/env | sed -'es|^.*/usr/bin/env \([^ ]\+\).*$|\1|g')" 20 + echo "file \`$i' -> interpreter \`$interpreter'" 21 + path="$(type -P $interpreter)" 22 + echo "\`/usr/bin/env $interpreter' -> \`$path' in \`$i'..." 23 + sed -i "$i" -e "s|/usr/bin/env $interpreter|$path|g" 24 + fi 25 + done 26 + true 27 + ''; 12 28 13 29 meta = { 30 + description = "MPICH2, an implementation of the Message Passing Interface (MPI) standard"; 31 + 14 32 longDescription = '' 15 33 MPICH2 is a free high-performance and portable implementation of 16 34 the Message Passing Interface (MPI) standard, both version 1 and ··· 18 36 ''; 19 37 homepage = http://www.mcs.anl.gov/mpi/mpich2/; 20 38 license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license"; 39 + 40 + maintainers = [ stdenv.lib.maintainers.ludo ]; 41 + platforms = stdenv.lib.platforms.unix; 21 42 }; 22 43 }
+1 -1
pkgs/top-level/all-packages.nix
··· 4355 4355 }; 4356 4356 4357 4357 mpich2 = import ../development/libraries/mpich2 { 4358 - inherit fetchurl stdenv python; 4358 + inherit fetchurl stdenv python perl; 4359 4359 }; 4360 4360 4361 4361 muparser = import ../development/libraries/muparser {