bscpkgs/garlic/apps/hpcg/default.nix
Raúl Peñacoba a44042615a WIP
2020-10-30 14:08:55 +01:00

44 lines
575 B
Nix

{
stdenv
, nanos6
, mpi
, tampi
, cc
, gitBranch ? "garlic/seq"
, makefileName ? "Linux_Serial"
}:
stdenv.mkDerivation rec {
name = "hpcg";
src = builtins.fetchGit {
url = "ssh://git@bscpm02.bsc.es/rpenacob/garlic-hpcg.git";
ref = "${gitBranch}";
};
prePatch = ''
#export NIX_DEBUG=6
'';
buildInputs = [
nanos6
mpi
tampi
cc
];
enableParallelBuilding = true;
configurePhase = ''
mkdir build
cd build
../configure ${makefileName}
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin/
'';
}