hpcg: cleanup, add runHooks to InstallPhase

This commit is contained in:
Markus Kowalewski 2024-09-26 21:05:36 +02:00
parent 9c2023e238
commit 7301f5b7d2
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -9,19 +9,23 @@ stdenv.mkDerivation rec {
sha256 = "197lw2nwmzsmfsbvgvi8z7kj69n374kgfzzp8pkmk7mp2vkk991k";
};
dontConfigure = true;
enableParallelBuilding = true;
buildInputs = [ mpi ];
makeFlags = [ "arch=Linux_MPI" ];
enableParallelBuilding = true;
dontConfigure = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/hpcg
cp bin/xhpcg $out/bin
cp bin/hpcg.dat $out/share/hpcg
runHook postInstall
'';
meta = with lib; {