nixpkgs/pkgs/development/libraries/libfabric/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
834 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, libpsm2
, enablePsm2 ? (stdenv.isx86_64 && stdenv.isLinux) }:
stdenv.mkDerivation rec {
pname = "libfabric";
2021-12-30 18:56:50 +00:00
version = "1.14.0";
enableParallelBuilding = true;
src = fetchFromGitHub {
owner = "ofiwg";
repo = pname;
rev = "v${version}";
2021-12-30 18:56:50 +00:00
sha256 = "sha256-MmvJV3Pne+bJtC91rdpNMZovoqMgm3gHFJwGH3tchgI=";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = lib.optional enablePsm2 libpsm2;
configureFlags = [ (if enablePsm2 then "--enable-psm2=${libpsm2}" else "--disable-psm2") ];
meta = with lib; {
homepage = "https://ofiwg.github.io/libfabric/";
description = "Open Fabric Interfaces";
license = with licenses; [ gpl2 bsd2 ];
platforms = platforms.all;
maintainers = [ maintainers.bzizou ];
};
}