2020-07-13 16:46:44 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2020-10-08 17:42:17 +02:00
|
|
|
, cc
|
2021-02-23 18:24:21 +01:00
|
|
|
, nanos6
|
|
|
|
, mcxx
|
|
|
|
, mpi
|
|
|
|
, tampi
|
2020-10-13 19:20:24 +02:00
|
|
|
, gitBranch
|
2020-07-13 16:46:44 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "hpcg";
|
|
|
|
|
|
|
|
src = builtins.fetchGit {
|
2020-12-07 13:47:17 +01:00
|
|
|
url = "ssh://git@bscpm03.bsc.es/rpenacob/garlic-hpcg.git";
|
2020-10-08 17:42:17 +02:00
|
|
|
ref = "${gitBranch}";
|
2020-07-13 16:46:44 +02:00
|
|
|
};
|
|
|
|
|
2021-02-23 18:24:21 +01:00
|
|
|
# prePatch = ''
|
|
|
|
# #export NIX_DEBUG=6
|
|
|
|
# '';
|
2020-07-13 16:46:44 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-23 18:24:21 +01:00
|
|
|
cc nanos6 mcxx mpi tampi
|
|
|
|
];
|
2020-07-13 16:46:44 +02:00
|
|
|
|
2020-10-08 18:24:56 +02:00
|
|
|
makeFlags = [
|
2020-12-03 18:06:51 +01:00
|
|
|
"CC=${cc.CC}"
|
|
|
|
"CXX=${cc.CXX}"
|
2020-10-08 18:24:56 +02:00
|
|
|
];
|
|
|
|
|
2020-07-13 16:46:44 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp bin/* $out/bin/
|
|
|
|
'';
|
|
|
|
|
2020-10-13 17:05:36 +02:00
|
|
|
programPath = "/bin/xhpcg";
|
|
|
|
|
2020-07-13 16:46:44 +02:00
|
|
|
}
|