mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
a755db7192
This is a small follow-up on the mstflint bump to 4.29.0-1. I added a reminder for this in the future. Signed-off-by: Markus Theil <theil.markus@gmail.com>
36 lines
1,018 B
Nix
36 lines
1,018 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-D++AnLUEB8d9WlReY/Ewp8E2cvbapJ3QrvYySKwaszk=";
|
|
};
|
|
|
|
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 = "Kernel module for Nvidia NIC firmware update";
|
|
homepage = "https://github.com/Mellanox/mstflint";
|
|
license = [ licenses.gpl2Only ];
|
|
maintainers = with maintainers; [ thillux ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|