bscpkgs/garlic/apps/heat/default.nix

36 lines
465 B
Nix
Raw Normal View History

{
stdenv
, mpi
, tampi
, mcxx
, gitBranch ? "master"
}:
stdenv.mkDerivation rec {
2020-07-27 13:17:08 +02:00
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}";
2020-11-05 19:52:37 +01:00
installPhase = ''
mkdir -p $out/bin
cp ${name} $out/bin/
2020-11-05 19:52:37 +01:00
mkdir -p $out/etc
cp heat.conf $out/etc/
'';
}