bscpkgs/pkgs/gpi-2/default.nix

42 lines
723 B
Nix
Raw Normal View History

2021-07-13 12:37:04 +02:00
{
stdenv
, slurm
, rdma-core
, autoconf
, automake
, libtool
, mpi
, rsync
, gfortran
}:
stdenv.mkDerivation rec {
pname = "GPI-2";
version = src.shortRev;
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/interoperability/GPI-2";
2022-04-05 16:33:30 +02:00
ref = "refs/tags/tagaspi-2021.11";
2023-10-06 14:34:03 +02:00
rev = "9082fe7770fa9f6acba1b1ac938ad209a3d09477";
2021-07-13 12:37:04 +02:00
};
enableParallelBuilding = true;
2021-07-13 12:37:04 +02:00
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
configureFlags = [
"--with-infiniband=${rdma-core}"
"--with-mpi=${mpi}"
"--with-slurm"
"CFLAGS=-fPIC"
"CXXFLAGS=-fPIC"
];
buildInputs = [ slurm mpi rdma-core autoconf automake libtool rsync gfortran ];
hardeningDisable = [ "all" ];
}