2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, kernel, kmod }:
|
2016-07-07 16:20:15 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
2019-08-15 12:27:32 +01:00
|
|
|
version = "4.6.1";
|
2016-07-07 16:20:15 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
2019-08-15 12:27:32 +01:00
|
|
|
sha256 = "0h8a2g4hm38wmr13gvi2188r7nlv2c5rx6cal9gkf1nh6sla181c";
|
2016-07-07 16:20:15 +01:00
|
|
|
};
|
|
|
|
|
2018-01-05 08:25:04 +00:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2016-08-13 15:30:35 +01:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2016-07-07 16:20:15 +01:00
|
|
|
configurePhase = ''
|
|
|
|
cd src
|
|
|
|
makeFlagsArray+=(KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build INSTALL_MOD_PATH=$out MANDIR=/share/man)
|
|
|
|
substituteInPlace common.mk --replace /sbin/depmod ${kmod}/bin/depmod
|
2019-08-15 12:27:32 +01:00
|
|
|
# prevent host system kernel introspection
|
|
|
|
substituteInPlace common.mk --replace /boot/System.map /not-exists
|
2016-07-07 16:20:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-07-07 16:20:15 +01:00
|
|
|
description = "Intel 82599 Virtual Function Driver";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/";
|
2019-08-15 12:27:32 +01:00
|
|
|
license = licenses.gpl2;
|
2016-07-07 16:20:15 +01:00
|
|
|
priority = 20;
|
2019-08-15 12:27:32 +01:00
|
|
|
# kernels ship ixgbevf driver for a long time already, maybe switch to a newest kernel?
|
|
|
|
broken = versionAtLeast kernel.version "5.2";
|
2016-07-07 16:20:15 +01:00
|
|
|
};
|
|
|
|
}
|