2016-07-07 17:20:15 +02:00
|
|
|
{ stdenv, fetchurl, kernel, kmod }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
2018-01-05 09:33:37 +01:00
|
|
|
version = "4.3.3";
|
2016-07-07 17:20:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
2018-01-05 09:33:37 +01:00
|
|
|
sha256 = "0kq8y0944kaprw445wb8iswdck2jmc0xpkx0iv6idy3r5cc4hvyg";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Intel 82599 Virtual Function Driver";
|
|
|
|
homepage = https://sourceforge.net/projects/e1000/files/ixgbevf%20stable/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
priority = 20;
|
2017-08-29 00:42:01 +02:00
|
|
|
broken = (stdenv.lib.versionOlder kernel.version "4.9");
|
2016-07-07 17:20:15 +02:00
|
|
|
};
|
|
|
|
}
|