2016-07-07 15:20:15 +00:00
|
|
|
{ stdenv, fetchurl, kernel, kmod }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
2017-05-24 12:47:01 +00:00
|
|
|
version = "4.1.2";
|
2016-07-07 15:20:15 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
2017-05-24 12:47:01 +00:00
|
|
|
sha256 = "1dismhiq0asf04rv6pv2sk2m3xcy6m3bpk16gmxqybca3xa28a5b";
|
2016-07-07 15:20:15 +00:00
|
|
|
};
|
|
|
|
|
2016-08-13 14:30:35 +00:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2016-07-07 15:20:15 +00: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;
|
|
|
|
};
|
|
|
|
}
|