2014-01-05 01:57:21 +00:00
|
|
|
{ stdenv, fetchurl, kernel }:
|
2011-09-15 15:18:45 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-01-05 01:57:21 +00:00
|
|
|
name = "e1000e-2.5.4-${kernel.version}";
|
2011-09-15 15:18:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-05 01:57:21 +00:00
|
|
|
url = "mirror://sourceforge/e1000/e1000e-2.5.4.tar.gz";
|
|
|
|
sha256 = "0bmihkc7y37jzwi996ryqblnyflyhhbimbnrnmlk419vxlzg1pzi";
|
2011-09-15 15:18:45 +00: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 15:18:45 +00: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 16:24:27 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2011-09-15 15:18:45 +00: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;
|
|
|
|
};
|
|
|
|
}
|