44 lines
575 B
Nix
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/
|
|
'';
|
|
|
|
}
|