1 { lib, stdenv, fetchFromGitHub, numactl, pkg-config }:
3 stdenv.mkDerivation rec {
8 export UDEVDIR=$out/etc/udev
9 substituteInPlace ./Makefile --replace "udevrulesdir}" "prefix}/etc/udev";
12 enableParallelBuilding = true;
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ numactl ];
18 # Disable blanket -Werror to avoid build failures
19 # on fresh toolchains like gcc-11.
26 "LIBPSM2_COMPAT_CONF_DIR=/etc"
29 src = fetchFromGitHub {
32 rev = "PSM2_${version}";
33 sha256 = "sha256-MzocxY+X2a5rJvTo+gFU0U10YzzazR1IxzgEporJyhI=";
42 homepage = "https://github.com/intel/opa-psm2";
43 description = "PSM2 library supports a number of fabric media and stacks";
44 license = with licenses; [ gpl2Only bsd3 ];
45 platforms = [ "x86_64-linux" ];
46 maintainers = [ maintainers.bzizou ];