2014-01-05 01:57:21 +00:00
|
|
|
{ stdenv, fetchurl, kernel }:
|
2011-09-15 16:18:45 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-01-23 21:17:56 +00:00
|
|
|
name = "e1000e-3.3.1-${kernel.version}";
|
2011-09-15 16:18:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-23 21:17:56 +00:00
|
|
|
url = "mirror://sourceforge/e1000/e1000e-3.3.1.tar.gz";
|
|
|
|
sha256 = "07hg6xxqgqshnys1qs9wbl9qr7d4ixdkd1y1fj27cg6bn8s2n797";
|
2011-09-15 16:18:45 +01:00
|
|
|
};
|
|
|
|
|
2016-08-13 15:25:29 +01:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2011-09-15 16:18:45 +01:00
|
|
|
configurePhase = ''
|
|
|
|
cd src
|
2014-01-05 01:57:21 +00:00
|
|
|
kernel_version=${kernel.modDirVersion}
|
|
|
|
sed -i -e 's|/lib/modules|${kernel.dev}/lib/modules|' Makefile
|
2011-09-15 16:18:45 +01:00
|
|
|
export makeFlags="BUILD_KERNEL=$kernel_version"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -v -D -m 644 e1000e.ko "$out/lib/modules/$kernel_version/kernel/drivers/net/e1000e/e1000e.ko"
|
|
|
|
'';
|
|
|
|
|
2011-09-15 17:24:27 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2011-09-15 16:18:45 +01:00
|
|
|
meta = {
|
|
|
|
description = "Linux kernel drivers for Intel Ethernet adapters and LOMs (LAN On Motherboard)";
|
|
|
|
homepage = "http://e1000.sf.net/";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|