bscpkgs/garlic/apps/heat/default.nix
Rodrigo Arias Mallo 972be56eed heat: patch to print the start and end time
It will be used to cut the CTF traces to take only the computation part
in cosideration.
2021-03-12 12:11:24 +01:00

36 lines
465 B
Nix

{
stdenv
, mpi
, tampi
, mcxx
, gitBranch ? "master"
}:
stdenv.mkDerivation rec {
name = "heat";
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/garlic/apps/heat.git";
ref = gitBranch;
};
patches = [ ./print-times.patch ];
buildInputs = [
mpi
mcxx
tampi
];
programPath = "/bin/${name}";
installPhase = ''
mkdir -p $out/bin
cp ${name} $out/bin/
mkdir -p $out/etc
cp heat.conf $out/etc/
'';
}