7 enablePsm2 ? (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isLinux),
9 enableOpx ? (stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isLinux),
14 stdenv.mkDerivation rec {
18 enableParallelBuilding = true;
20 src = fetchFromGitHub {
24 sha256 = "sha256-W86hsxhbaUbB1sb0l1J0e/9IBnc5eZLQ1m4/SuyXZG0=";
39 lib.optionals enableOpx [
43 ++ lib.optionals enablePsm2 [ libpsm2 ];
46 (if enablePsm2 then "--enable-psm2=${libpsm2}" else "--disable-psm2")
47 (if enableOpx then "--enable-opx" else "--disable-opx")
51 homepage = "https://ofiwg.github.io/libfabric/";
52 description = "Open Fabric Interfaces";
53 license = with licenses; [
57 platforms = platforms.all;
58 maintainers = [ maintainers.bzizou ];