···
1
-
{ stdenv, fetchurl, python, perl, gfortran }:
1
+
{ stdenv, fetchurl, python, perl, gfortran
2
+
, slurm, openssh, hwloc
stdenv.mkDerivation rec {
name = "mpich-${version}";
8
-
url = "http://www.mpich.org/static/downloads/3.2/mpich-3.2.tar.gz";
9
-
sha256 = "0bvvk4n9g4rmrncrgs9jnkcfh142i65wli5qp1akn9kwab1q80z6";
10
+
url = "http://www.mpich.org/static/downloads/${version}/mpich-${version}.tar.gz";
11
+
sha256 = "1w9h4g7d46d9l5jbcyfxpaqzpjrc5hyvr9d0ns7278psxpr3pdax";
12
-
configureFlags = "--enable-shared --enable-sharedlib";
16
+
"--enable-sharedlib"
14
-
buildInputs = [ perl gfortran ];
19
+
buildInputs = [ perl gfortran slurm openssh hwloc ];
24
+
# /tmp/nix-build... ends up in the RPATH, fix it manually
25
+
for entry in $out/bin/mpichversion $out/bin/mpivars; do
26
+
echo "fix rpath: $entry"
27
+
patchelf --set-rpath "$out/lib" $entry
32
+
meta = with stdenv.lib; {
description = "Implementation of the Message Passing Interface (MPI) standard";
···
homepage = http://www.mcs.anl.gov/mpi/mpich2/;
25
-
license = "free, see http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=license";
28
-
platforms = stdenv.lib.platforms.unix;
42
+
url = http://git.mpich.org/mpich.git/blob/a385d6d0d55e83c3709ae851967ce613e892cd21:/COPYRIGHT;
43
+
fullName = "MPICH license (permissive)";
45
+
maintainers = [ maintainers.markuskowa ];
46
+
platforms = platforms.unix;