2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, kernel, kmod }:
|
2016-07-07 17:20:15 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
2019-08-15 13:27:32 +02:00
|
|
|
version = "4.6.1";
|
2016-07-07 17:20:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
2019-08-15 13:27:32 +02:00
|
|
|
sha256 = "0h8a2g4hm38wmr13gvi2188r7nlv2c5rx6cal9gkf1nh6sla181c";
|
2016-07-07 17:20:15 +02:00
|
|
|
};
|
|
|
|
|
2018-01-05 09:25:04 +01:00
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
2016-08-13 16:30:35 +02:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2016-07-07 17:20:15 +02: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 13:27:32 +02:00
|
|
|
# prevent host system kernel introspection
|
|
|
|
substituteInPlace common.mk --replace /boot/System.map /not-exists
|
2016-07-07 17:20:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-07-07 17:20:15 +02:00
|
|
|
description = "Intel 82599 Virtual Function Driver";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/";
|
2019-08-15 13:27:32 +02:00
|
|
|
license = licenses.gpl2;
|
2016-07-07 17:20:15 +02:00
|
|
|
priority = 20;
|
2019-08-15 13:27:32 +02: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 17:20:15 +02:00
|
|
|
};
|
|
|
|
}
|