prrte: init at 3.0.3
Co-authored-by: Markus Kowalewski <markus.kowalewski@gmail.com>
This commit is contained in:
committed by
Doron Behar
co-authored by
Markus Kowalewski
parent
e4900a8029
commit
b0d8554f3c
@@ -0,0 +1,80 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
removeReferencesTo,
|
||||
fetchFromGitHub,
|
||||
autoconf,
|
||||
automake,
|
||||
libtool,
|
||||
gitMinimal,
|
||||
perl,
|
||||
python3,
|
||||
flex,
|
||||
hwloc,
|
||||
libevent,
|
||||
zlib,
|
||||
pmix,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "prrte";
|
||||
version = "3.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openpmix";
|
||||
repo = "prrte";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-RDxd4veLGbN+T7xCDnNp2lbOM7mwKKD+SKdPmExr1C8=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"dev"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./autogen.pl ./config
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.pl
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "bin/prte_info" "''${!outputDev}"
|
||||
# Fix a broken symlink, created due to FHS assumptions
|
||||
rm "$out/bin/pcc"
|
||||
ln -s ${lib.getDev pmix}/bin/pmixcc "''${!outputDev}"/bin/pcc
|
||||
|
||||
remove-references-to -t "''${!outputDev}" $(readlink -f $out/lib/libprrte${stdenv.hostPlatform.extensions.library})
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
removeReferencesTo
|
||||
perl
|
||||
python3
|
||||
autoconf
|
||||
automake
|
||||
libtool
|
||||
flex
|
||||
gitMinimal
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libevent
|
||||
hwloc
|
||||
zlib
|
||||
pmix
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "PMIx Reference Runtime Environment";
|
||||
homepage = "https://docs.prrte.org/";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ markuskowa ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user