Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
numactl,
|
|
pkg-config,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libpsm2";
|
|
version = "12.0.1";
|
|
|
|
preConfigure = ''
|
|
export UDEVDIR=$out/etc/udev
|
|
substituteInPlace ./Makefile --replace "udevrulesdir}" "prefix}/etc/udev";
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
udevCheckHook
|
|
];
|
|
buildInputs = [ numactl ];
|
|
|
|
makeFlags = [
|
|
# Disable blanket -Werror to avoid build failures
|
|
# on fresh toolchains like gcc-11.
|
|
"WERROR="
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
installFlags = [
|
|
"DESTDIR=$(out)"
|
|
"UDEVDIR=/etc/udev"
|
|
"LIBPSM2_COMPAT_CONF_DIR=/etc"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "opa-psm2";
|
|
rev = "PSM2_${version}";
|
|
sha256 = "sha256-MzocxY+X2a5rJvTo+gFU0U10YzzazR1IxzgEporJyhI=";
|
|
};
|
|
|
|
postInstall = ''
|
|
mv $out/usr/* $out
|
|
rmdir $out/usr
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/intel/opa-psm2";
|
|
description = "PSM2 library supports a number of fabric media and stacks";
|
|
license = with licenses; [
|
|
gpl2Only
|
|
bsd3
|
|
];
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = [ maintainers.bzizou ];
|
|
# uses __off64_t, srand48_r, lrand48_r, drand48_r
|
|
broken = stdenv.hostPlatform.isMusl;
|
|
};
|
|
}
|