1{ lib, stdenv, fetchFromGitHub, perl, autoconf, automake
2, libtool, flex, libevent, hwloc, munge, zlib, pandoc
3} :
4
5stdenv.mkDerivation rec {
6 pname = "pmix";
7 version = "3.2.4";
8
9 src = fetchFromGitHub {
10 repo = "openpmix";
11 owner = "openpmix";
12 rev = "v${version}";
13 sha256 = "sha256-79zTZm549VRsqeziCuBT6l4jTJ6D/gZaMAvgHZm7jn4=";
14 };
15
16 postPatch = ''
17 patchShebangs ./autogen.pl
18 patchShebangs ./config
19 '';
20
21 nativeBuildInputs = [ pandoc perl autoconf automake libtool flex ];
22
23 buildInputs = [ libevent hwloc munge zlib ];
24
25 configureFlags = [
26 "--with-libevent=${libevent.dev}"
27 "--with-munge=${munge}"
28 "--with-hwloc=${hwloc.dev}"
29 ];
30
31 preConfigure = ''
32 ./autogen.pl
33 '';
34
35 enableParallelBuilding = true;
36
37 meta = with lib; {
38 description = "Process Management Interface for HPC environments";
39 homepage = "https://openpmix.github.io/";
40 license = licenses.bsd3;
41 maintainers = [ maintainers.markuskowa ];
42 platforms = platforms.linux;
43 };
44}
45