nixpkgs/pkgs/os-specific/linux/ixgbevf/default.nix
xeji a7435092c0 ixgbevf: 4.3.3 -> 4.3.4
4.3.3 didn't build with linux 4.15
2018-04-02 03:42:25 -05:00

31 lines
927 B
Nix

{ stdenv, fetchurl, kernel, kmod }:
stdenv.mkDerivation rec {
name = "ixgbevf-${version}-${kernel.version}";
version = "4.3.4";
src = fetchurl {
url = "mirror://sourceforge/e1000/ixgbevf-${version}.tar.gz";
sha256 = "122zn9nd8f95bpidiiinc8xaizypkirqs8vlmsdy2iv3w65md9k3";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
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;
broken = (stdenv.lib.versionOlder kernel.version "4.9");
};
}