bscpkgs/garlic/apps/heat/default.nix

40 lines
641 B
Nix
Raw Normal View History

{
stdenv
, mpi
, tampi
, mcxx
2021-03-31 16:41:32 +02:00
, gitBranch ? "garlic/mpi+send+seq"
, gitCommit ? null
, garlicTools
}:
2021-03-31 16:41:32 +02:00
let
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";
inherit (gitSource) src gitBranch gitCommit;
2021-03-31 16:41:32 +02:00
patches = [ ./print-times.patch ];
2021-03-31 16:41:32 +02:00
buildInputs = [ mpi mcxx tampi ];
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/
'';
hardeningDisable = [ "all" ];
2021-03-31 16:41:32 +02:00
}