6 , enablePsm2 ? (stdenv.isx86_64 && stdenv.isLinux)
8 , enableOpx ? (stdenv.isx86_64 && stdenv.isLinux)
13 stdenv.mkDerivation rec {
17 enableParallelBuilding = true;
19 src = fetchFromGitHub {
23 sha256 = "sha256-7VOhdZOPBe1qh8OK8OTNKA5I4A5whl6aOubAzsUDSRw=";
26 outputs = [ "out" "dev" "man" ];
28 nativeBuildInputs = [ pkg-config autoreconfHook ];
30 buildInputs = lib.optionals enableOpx [ libuuid numactl ] ++ lib.optionals enablePsm2 [ libpsm2 ];
33 (if enablePsm2 then "--enable-psm2=${libpsm2}" else "--disable-psm2")
34 (if enableOpx then "--enable-opx" else "--disable-opx")
38 homepage = "https://ofiwg.github.io/libfabric/";
39 description = "Open Fabric Interfaces";
40 license = with licenses; [ gpl2 bsd2 ];
41 platforms = platforms.all;
42 maintainers = [ maintainers.bzizou ];