hpcg: cleanup, add runHooks to InstallPhase, move to pkgs/by-name (#344718)

This commit is contained in:
Markus Kowalewski
2024-09-30 17:06:29 +02:00
committed by GitHub
2 changed files with 14 additions and 8 deletions
@@ -1,4 +1,9 @@
{ lib, stdenv, fetchurl, mpi } :
{
lib,
stdenv,
fetchurl,
mpi,
}:
stdenv.mkDerivation rec {
pname = "hpcg";
@@ -9,19 +14,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; {
@@ -33,4 +42,3 @@ stdenv.mkDerivation rec {
mainProgram = "xhpcg";
};
}
-2
View File
@@ -30130,8 +30130,6 @@ with pkgs;
hpack = haskell.lib.compose.justStaticExecutables haskellPackages.hpack;
hpcg = callPackage ../tools/misc/hpcg { };
hpl = callPackage ../tools/misc/hpl { };
hpmyroom = libsForQt5.callPackage ../applications/networking/hpmyroom { };