bscpkgs/garlic/apps/hpcg/default.nix

42 lines
534 B
Nix
Raw Normal View History

2020-07-13 16:46:44 +02:00
{
stdenv
2020-10-08 17:42:17 +02:00
, cc
, nanos6
, mcxx
, mpi
, tampi
, gitBranch
2020-07-13 16:46:44 +02:00
}:
stdenv.mkDerivation rec {
name = "hpcg";
src = builtins.fetchGit {
2020-12-07 13:47:17 +01:00
url = "ssh://git@bscpm03.bsc.es/rpenacob/garlic-hpcg.git";
2020-10-08 17:42:17 +02:00
ref = "${gitBranch}";
2020-07-13 16:46:44 +02:00
};
# prePatch = ''
# #export NIX_DEBUG=6
# '';
2020-07-13 16:46:44 +02:00
buildInputs = [
cc nanos6 mcxx mpi tampi
];
2020-07-13 16:46:44 +02:00
makeFlags = [
2020-12-03 18:06:51 +01:00
"CC=${cc.CC}"
"CXX=${cc.CXX}"
];
2020-07-13 16:46:44 +02:00
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin/
'';
2020-10-13 17:05:36 +02:00
programPath = "/bin/xhpcg";
2020-07-13 16:46:44 +02:00
}