nixpkgs/pkgs/os-specific/linux/mstflint_access/default.nix
Markus Theil d45657d3ee
mstflint_access: 4.26.0-1 -> 4.28.0-1
Release Notes: see mstflint bump

Notable Fixes:
* fix compilation with Linux 6.4 upwards

Signed-off-by: Markus Theil <theil.markus@gmail.com>
2024-05-13 15:53:03 +02:00

37 lines
1020 B
Nix

{ lib, stdenv, fetchurl, kernel, kmod, mstflint }:
stdenv.mkDerivation rec {
pname = "mstflint_access";
inherit (mstflint) version;
src = fetchurl {
url = "https://github.com/Mellanox/mstflint/releases/download/v${version}/kernel-mstflint-${version}.tar.gz";
hash = "sha256-bWYglHJUNCPT13N7aBdjbLPMZIk7vjvF+o9W3abDNr0=";
};
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [
"KVER=${kernel.modDirVersion}"
"KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -D ${pname}.ko $out/lib/modules/${kernel.modDirVersion}/extra/${pname}.ko
runHook postInstall
'';
meta = with lib; {
description = "A kernel module for Nvidia NIC firmware update";
homepage = "https://github.com/Mellanox/mstflint";
license = [ licenses.gpl2Only ];
maintainers = with maintainers; [ thillux ];
platforms = platforms.linux;
};
}