git.iko.soy/typeable/nixpkgs
on master help sign in
mpich2: 1.4 -> 3.2
commit362c84227332dddf536238e75acb7fd1c646714a authortimor <timor.dd@googlemail.com> dateSun 10 Sep 2017, 13:43 (9 years ago) parente960eb0
1 file changed+5−21
pkgs/development/libraries/mpich2/default.nix+5−21
pkgs/development/libraries/mpich2/default.nix+5−21
@@ -1,33 +1,17 @@
11{ stdenv, fetchurl, python, perl, gfortran }:
22
3−let version = "1.4"; in
4−stdenv.mkDerivation {
5− name = "mpich2-${version}";
3+stdenv.mkDerivation rec {
4+ name = "mpich-${version}";
5+ version = "3.2";
66
77 src = fetchurl {
8− url = "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${version}/mpich2-${version}.tar.gz";
8+ url = "http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz";
99 sha256 = "0bvvk4n9g4rmrncrgs9jnkcfh142i65wli5qp1akn9kwab1q80z6";
1010 };
1111
1212 configureFlags = "--enable-shared --enable-sharedlib";
1313
14− buildInputs = [ python perl gfortran ];
15− propagatedBuildInputs = stdenv.lib.optional (stdenv ? glibc) stdenv.glibc;
16−
17− patchPhase =
18− '' for i in $(find -type f -not -name Makefile.\*)
19− do
20− if grep -q /usr/bin/env "$i"
21− then
22− interpreter="$(cat $i | grep /usr/bin/env | sed -'es|^.*/usr/bin/env \([^ ]\+\).*$|\1|g')"
23− echo "file \`$i' -> interpreter \`$interpreter'"
24− path="$(type -P $interpreter)"
25− echo "\`/usr/bin/env $interpreter' -> \`$path' in \`$i'..."
26− sed -i "$i" -e "s|/usr/bin/env $interpreter|$path|g"
27− fi
28− done
29− true
30− '';
14+ buildInputs = [ perl gfortran ];
3115
3216 meta = {
3317 description = "Implementation of the Message Passing Interface (MPI) standard";