mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
40e84506ec
cc #23253
30 lines
866 B
Nix
30 lines
866 B
Nix
{ stdenv, fetchurl, kernel, kmod }:
|
|
|
|
assert stdenv.lib.versionOlder kernel.version "4.10";
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ixgbevf-${version}-${kernel.version}";
|
|
version = "4.0.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
|
|
sha256 = "0f95p2d7yhf57qa6fl8nv1rb4x8vwwgh7qhqcqpag0hz19dc3xff";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|