Update Mellanox tools 2025-11 (#460640)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchpatch,
|
||||
rdma-core,
|
||||
openssl,
|
||||
zlib,
|
||||
@@ -29,21 +28,13 @@ stdenv.mkDerivation rec {
|
||||
pname = "mstflint";
|
||||
|
||||
# if you update the version of this package, also update the input hash in mstflint_access!
|
||||
version = "4.31.0-1";
|
||||
version = "4.34.0-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/mstflint-${version}.tar.gz";
|
||||
hash = "sha256-wBUkFOdYChiSXHcH6+LLZZ06Hte4ABWjW+pNcjtk+Oc=";
|
||||
hash = "sha256-MOFfbrjwnWXVskFCF2pgjf1Z8nkZV0l+CLfGWzxmmIg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes build errors due to missing declarations in headers
|
||||
(fetchpatch {
|
||||
url = "https://patch-diff.githubusercontent.com/raw/Mellanox/mstflint/pull/1131.patch";
|
||||
sha256 = "sha256-tn8EO9HkDrMroV6byUPgjclBIK8tq4xGyi4Kx/rIj+w=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
bashNonInteractive,
|
||||
coreutils,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
fuse,
|
||||
gawk,
|
||||
gnugrep,
|
||||
@@ -16,22 +17,32 @@
|
||||
procps,
|
||||
pv,
|
||||
stdenv,
|
||||
which,
|
||||
systemd,
|
||||
util-linux,
|
||||
which,
|
||||
withBfbInstall ? true,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rshim-user-space";
|
||||
version = "2.4.4";
|
||||
version = "2.5.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mellanox";
|
||||
repo = "rshim-user-space";
|
||||
rev = "rshim-${version}";
|
||||
hash = "sha256-w2+1tUDWYmgDC0ycWGdtVfdbkZCmtvwXm47qK5PCCfg=";
|
||||
hash = "sha256-dXrReU6Wx8t6ObrrF3MeUWdFBSfn6tyQqQdGBAZsvDg=";
|
||||
};
|
||||
|
||||
# came up shortly after 2.5.7 release, remove with next update
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
name = "rshim-fix-bfb-install.patch";
|
||||
url = "https://github.com/Mellanox/rshim-user-space/commit/0b2b17eeb04d80b7efb20aa2a9dc24759680aaea.patch";
|
||||
hash = "sha256-JqnCGWM6Wjg+WFQhqHv6h4VbawyCf75L4wfd7L+n7po=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
@@ -40,9 +51,10 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optionals withBfbInstall [ makeBinaryWrapper ];
|
||||
|
||||
buildInputs = [
|
||||
pciutils
|
||||
libusb1
|
||||
fuse
|
||||
libusb1
|
||||
pciutils
|
||||
systemd
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
@@ -73,6 +85,7 @@ stdenv.mkDerivation rec {
|
||||
pciutils
|
||||
procps
|
||||
pv
|
||||
systemd
|
||||
util-linux
|
||||
which
|
||||
]
|
||||
|
||||
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/kernel-mstflint-${version}.tar.gz";
|
||||
hash = "sha256-kQBv/67miw6lSHIcCVYy66B7OHVofFs2N+evtsQ3Ovk=";
|
||||
hash = "sha256-VO4nXGlqp955xmNyAD/TdOfLEA2CKouOJmLnRCvjnaw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
|
||||
|
||||
Reference in New Issue
Block a user