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 }
25 lines
784 B
Nix
25 lines
784 B
Nix
{ gccStdenv, fetchurl, zlib, mpi }:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
version = "3.7.2";
|
|
pname = "migrate";
|
|
|
|
src = fetchurl {
|
|
url = "https://peterbeerli.com/migrate-html5/download_version3/${pname}-${version}.src.tar.gz";
|
|
sha256 = "1p2364ffjc56i82snzvjpy6pkf6wvqwvlvlqxliscx2c303fxs8v";
|
|
};
|
|
|
|
buildInputs = [ zlib mpi ];
|
|
setSourceRoot = ''sourceRoot=$(echo */src)'';
|
|
buildFlags = [ "thread" "mpis" ];
|
|
preInstall = "mkdir -p $out/man/man1";
|
|
|
|
meta = with gccStdenv.lib; {
|
|
description = "Estimates population size, migration, population splitting parameters using genetic/genomic data";
|
|
homepage = "https://peterbeerli.com/migrate-html5/index.html";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.bzizou ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|