Unverified Commit 76f67183 authored by Markus Kowalewski's avatar Markus Kowalewski Committed by GitHub
Browse files

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

parents 1e746f00 077fedc9
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
{ 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";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -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 { };