8a07319e7f
This fixes error: assertion failed at /home/eelco/Dev/nixpkgs-stable/pkgs/os-specific/linux/ixgbevf/default.nix:3:1 (use ‘--show-trace’ to show detailed location information) deploying a >=4.10 kernel to EC2. (We could probably also drop the ixgbevf package with recent kernels, since the ixgbevf module included in the kernel source tree is recent enough according to Amazon's recommendation.)
29 lines
811 B
Nix
29 lines
811 B
Nix
{ stdenv, fetchurl, kernel, kmod }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
|
version = "4.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
|
sha256 = "1dismhiq0asf04rv6pv2sk2m3xcy6m3bpk16gmxqybca3xa28a5b";
|
|
};
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
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;
|
|
};
|
|
}
|