Unverified Commit 03cba736 authored by Grimmauld's avatar Grimmauld
Browse files

scotch: add update script

parent 5e831ad1
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
  mpi,
  withPtScotch ? false,
  testers,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
@@ -58,6 +59,14 @@ stdenv.mkDerivation (finalAttrs: {
    mpi
  ];

  # SCOTCH provide compatibility with Metis/Parmetis interface.
  # We install the metis compatible headers to subdirectory to
  # avoid conflict with metis/parmetis.
  postFixup = ''
    mkdir -p $dev/include/scotch
    mv $dev/include/{*metis,metisf}.h $dev/include/scotch
  '';

  passthru = {
    tests = {
      cmake-config = testers.hasCmakeConfigModules {
@@ -65,15 +74,9 @@ stdenv.mkDerivation (finalAttrs: {
        package = finalAttrs.finalPackage;
      };
    };
  };

  # SCOTCH provide compatibility with Metis/Parmetis interface.
  # We install the metis compatible headers to subdirectory to
  # avoid conflict with metis/parmetis.
  postFixup = ''
    mkdir -p $dev/include/scotch
    mv $dev/include/{*metis,metisf}.h $dev/include/scotch
  '';
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Graph and mesh/hypergraph partitioning, graph clustering, and sparse matrix ordering";