git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29196 from timor/mpich2-3.2
b9bbbb7Orivej Desh
pkgs/development/libraries/mpich2/default.nix+5−21
@@ -1,33 +1,17 @@
1{ stdenv, fetchurl, python, perl, gfortran }:
1{ stdenv, fetchurl, python, perl, gfortran }:
2
2
3−let version = "1.4"; in
4−stdenv.mkDerivation {
3+stdenv.mkDerivation rec {
5− name = "mpich2-${version}";
4+ name = "mpich-${version}";
5+ version = "3.2";
6
6
7 src = fetchurl {
7 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";
9 sha256 = "0bvvk4n9g4rmrncrgs9jnkcfh142i65wli5qp1akn9kwab1q80z6";
9 sha256 = "0bvvk4n9g4rmrncrgs9jnkcfh142i65wli5qp1akn9kwab1q80z6";
10 };
10 };
11
11
12 configureFlags = "--enable-shared --enable-sharedlib";
12 configureFlags = "--enable-shared --enable-sharedlib";
13
13
14− buildInputs = [ python perl gfortran ];
14+ buildInputs = [ 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− '';
31
15
32 meta = {
16 meta = {
33 description = "Implementation of the Message Passing Interface (MPI) standard";
17 description = "Implementation of the Message Passing Interface (MPI) standard";