3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #203695 from sielicki/bump-ena-module

ena: 2.7.1 -> 2.8.0
This commit is contained in:
Guillaume Girol 2022-12-03 19:42:09 +00:00 committed by GitHub
commit 3eac52b1f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
version = "2.7.1";
version = "2.8.0";
name = "ena-${version}-${kernel.version}";
src = fetchFromGitHub {
owner = "amzn";
repo = "amzn-drivers";
rev = "ena_linux_${version}";
sha256 = "sha256-JkGzmmsAmLvL9e+bg58H79GNHgsqydK/79VoWEq5/Mc=";
sha256 = "sha256-Nw86s93v8ahc/yt5sNsGz4LRwzDPtBnIZNno8vpFdsY=";
};
hardeningDisable = [ "pic" ];
@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
configurePhase = ''
runHook preConfigure
cd kernel/linux/ena
export ENA_PHC_INCLUDE=1
substituteInPlace Makefile --replace '/lib/modules/$(BUILD_KERNEL)' ${kernel.dev}/lib/modules/${kernel.modDirVersion}
runHook postConfigure
'';
@ -40,8 +41,7 @@ stdenv.mkDerivation rec {
description = "Amazon Elastic Network Adapter (ENA) driver for Linux";
homepage = "https://github.com/amzn/amzn-drivers";
license = licenses.gpl2Only;
maintainers = [ maintainers.eelco ];
maintainers = with maintainers; [ eelco sielicki ];
platforms = platforms.linux;
broken = kernel.kernelAtLeast "5.17";
};
}