0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, autoreconfHook
|
|
, enablePsm2 ? (stdenv.isx86_64 && stdenv.isLinux)
|
|
, libpsm2
|
|
, enableOpx ? (stdenv.isx86_64 && stdenv.isLinux)
|
|
, libuuid
|
|
, numactl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libfabric";
|
|
version = "1.17.0";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ofiwg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tXfAn8hkasA2UuA4/8dOE3EcORyJo/A33TtSNdzDXD8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
buildInputs = lib.optionals enableOpx [ libuuid numactl ] ++ lib.optional enablePsm2 [ libpsm2 ];
|
|
|
|
configureFlags = [
|
|
(if enablePsm2 then "--enable-psm2=${libpsm2}" else "--disable-psm2")
|
|
(if enableOpx then "--enable-opx" else "--disable-opx")
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://ofiwg.github.io/libfabric/";
|
|
description = "Open Fabric Interfaces";
|
|
license = with licenses; [ gpl2 bsd2 ];
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bzizou ];
|
|
};
|
|
}
|