6dba41fbcb
Use the attribute mpi to provide a system wide default MPI implementation. The default is openmpi (as before). This now allows for overriding the MPI implentation by using the overlay mechanism. Build all packages with mpich instead of the default openmpi can now be achived like this: self: super: { mpi = super.mpich; } All derivations that have been using "mpi ? null" to provide optional building with MPI have been change in the following way to allow for optional builds with MPI: { ... , mpi , useMpi ? false }
27 lines
647 B
Nix
27 lines
647 B
Nix
{ lib, stdenv, fetchFromGitHub, mpi, perl, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ior";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hpc";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-pSjptDfiPlaToXe1yHyk9MQMC9PqcVSjqAmWLD11iOM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ mpi perl ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://ior.readthedocs.io/en/latest/";
|
|
description = "Parallel file system I/O performance test";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ bzizou ];
|
|
};
|
|
}
|