2020-07-08 13:33:45 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, mpi
|
|
|
|
, tampi
|
2021-03-05 16:16:06 +01:00
|
|
|
, mcxx
|
|
|
|
, gitBranch ? "master"
|
2020-07-08 13:33:45 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-07-27 13:17:08 +02:00
|
|
|
name = "heat";
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-05 16:16:06 +01:00
|
|
|
src = builtins.fetchGit {
|
|
|
|
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
|
|
|
|
ref = gitBranch;
|
|
|
|
};
|
2020-07-08 13:33:45 +02:00
|
|
|
|
2021-03-12 12:11:24 +01:00
|
|
|
patches = [ ./print-times.patch ];
|
|
|
|
|
2020-07-08 13:33:45 +02:00
|
|
|
buildInputs = [
|
|
|
|
mpi
|
2021-03-05 16:16:06 +01:00
|
|
|
mcxx
|
2020-07-08 13:33:45 +02:00
|
|
|
tampi
|
|
|
|
];
|
|
|
|
|
2021-03-05 16:16:06 +01:00
|
|
|
programPath = "/bin/${name}";
|
2020-11-05 19:52:37 +01:00
|
|
|
|
2020-07-08 13:33:45 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2021-03-05 16:16:06 +01:00
|
|
|
cp ${name} $out/bin/
|
2020-11-05 19:52:37 +01:00
|
|
|
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cp heat.conf $out/etc/
|
2020-07-08 13:33:45 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|