2020-07-08 13:33:45 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, mpi
|
|
|
|
, tampi
|
2021-03-05 16:16:06 +01:00
|
|
|
, mcxx
|
2021-03-31 16:41:32 +02:00
|
|
|
, gitBranch ? "garlic/mpi+send+seq"
|
|
|
|
, gitCommit ? null
|
|
|
|
, garlicTools
|
2020-07-08 13:33:45 +02:00
|
|
|
}:
|
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
let
|
|
|
|
gitTable = {
|
|
|
|
# Auto-generated with garlic-git-table on 2021-03-31
|
|
|
|
"garlic/mpi+send+oss+task" = "947c80070d4c53e441df54b8bfac8928b10c5fb2";
|
|
|
|
"garlic/mpi+send+seq" = "f41e1433808d0cbecd88a869b451c927747e5d42";
|
|
|
|
"garlic/tampi+isend+oss+task" = "b1273f9b4db32ba6e15e3d41343e67407ce2f54f";
|
|
|
|
"garlic/tampi+send+oss+task" = "554bec249f9aa23dd92edcfa2ada1e03e05e121d";
|
|
|
|
};
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
# Find the actual commit
|
|
|
|
_gitCommit = garlicTools.findCommit {
|
|
|
|
inherit gitCommit gitTable gitBranch;
|
2021-03-05 16:16:06 +01:00
|
|
|
};
|
2021-03-31 16:41:32 +02:00
|
|
|
_gitBranch = gitBranch;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "heat";
|
|
|
|
|
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
|
|
|
|
ref = _gitBranch;
|
|
|
|
rev = _gitCommit;
|
|
|
|
};
|
|
|
|
|
|
|
|
gitBranch = _gitBranch;
|
|
|
|
gitCommit = _gitCommit;
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
patches = [ ./print-times.patch ];
|
2021-03-12 12:11:24 +01:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
buildInputs = [ mpi mcxx tampi ];
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
programPath = "/bin/${name}";
|
2020-11-05 19:52:37 +01:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${name} $out/bin/
|
2020-11-05 19:52:37 +01:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
mkdir -p $out/etc
|
|
|
|
cp heat.conf $out/etc/
|
|
|
|
'';
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-31 16:41:32 +02:00
|
|
|
}
|