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
|
2021-04-01 18:07:13 +02:00
|
|
|
gitSource = garlicTools.fetchGarlicApp {
|
|
|
|
appName = "heat";
|
|
|
|
inherit gitCommit gitBranch;
|
|
|
|
gitTable = import ./git-table.nix;
|
2021-03-31 16:41:32 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "heat";
|
|
|
|
|
2021-04-01 18:07:13 +02:00
|
|
|
inherit (gitSource) src gitBranch 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/
|
|
|
|
'';
|
2021-04-06 19:19:24 +02:00
|
|
|
|
|
|
|
hardeningDisable = [ "all" ];
|
2021-03-31 16:41:32 +02:00
|
|
|
}
|