about summary refs log tree commit diff
path: root/pkgs/by-name/pa/parmetis/package.nix
blob: 5023390a182cb0530be3582da46646b8584a8c76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv
, fetchurl
, cmake
, mpi
}:

stdenv.mkDerivation rec {
  pname = "parmetis";
  version = "4.0.3";

  src = fetchurl {
    url = "http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-${version}.tar.gz";
    sha256 = "0pvfpvb36djvqlcc3lq7si0c5xpb2cqndjg8wvzg35ygnwqs5ngj";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ mpi ];

  # metis and GKlib are packaged with distribution
  # AUR https://aur.archlinux.org/packages/parmetis/ has reported that
  # it easier to build with the included packages as opposed to using the metis
  # package. Compilation time is short.
  configurePhase = ''
    make config metis_path=$PWD/metis gklib_path=$PWD/metis/GKlib prefix=$out
  '';

  meta = with lib; {
    description = "MPI-based parallel library that implements a variety of algorithms for partitioning unstructured graphs, meshes, and for computing fill-reducing orderings of sparse matrices";
    homepage = "http://glaros.dtc.umn.edu/gkhome/metis/parmetis/overview";
    platforms = platforms.all;
    license = licenses.unfree;
    maintainers = [ maintainers.costrouc ];
  };
}