2014-01-05 02:57:21 +01:00
|
|
|
{ stdenv, fetchurl, kernel }:
|
2011-09-15 17:18:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2016-01-23 22:17:56 +01:00
|
|
|
name = "e1000e-3.3.1-${kernel.version}";
|
2011-09-15 17:18:45 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-23 22:17:56 +01:00
|
|
|
url = "mirror://sourceforge/e1000/e1000e-3.3.1.tar.gz";
|
|
|
|
sha256 = "07hg6xxqgqshnys1qs9wbl9qr7d4ixdkd1y1fj27cg6bn8s2n797";
|
2011-09-15 17:18:45 +02:00
|
|
|
};
|
|
|
|
|
2016-08-13 16:25:29 +02:00
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2011-09-15 17:18:45 +02:00
|
|
|
configurePhase = ''
|
|
|
|
cd src
|
2014-01-05 02:57:21 +01:00
|
|
|
kernel_version=${kernel.modDirVersion}
|
|
|
|
sed -i -e 's|/lib/modules|${kernel.dev}/lib/modules|' Makefile
|
2011-09-15 17:18:45 +02: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 18:24:27 +02:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2011-09-15 17:18:45 +02: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;
|
|
|
|
};
|
|
|
|
}
|