1 { lib, stdenv, fetchurl, kernel, kmod }:
3 stdenv.mkDerivation rec {
4 name = "ixgbevf-${version}-${kernel.version}";
8 url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
9 sha256 = "0h8a2g4hm38wmr13gvi2188r7nlv2c5rx6cal9gkf1nh6sla181c";
12 nativeBuildInputs = kernel.moduleBuildDependencies;
14 hardeningDisable = [ "pic" ];
18 makeFlagsArray+=(KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build INSTALL_MOD_PATH=$out MANDIR=/share/man)
19 substituteInPlace common.mk --replace /sbin/depmod ${kmod}/bin/depmod
20 # prevent host system kernel introspection
21 substituteInPlace common.mk --replace /boot/System.map /not-exists
24 enableParallelBuilding = true;
27 description = "Intel 82599 Virtual Function Driver";
28 homepage = "https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/";
29 license = licenses.gpl2;
31 # kernels ship ixgbevf driver for a long time already, maybe switch to a newest kernel?
32 broken = versionAtLeast kernel.version "5.2";