rtl8812au, rtl8821au: Prevent runtime dependency on kernel.dev
This commit is contained in:
parent
23491749be
commit
711cbb9117
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, kernel, bc }:
|
||||
{ stdenv, fetchFromGitHub, kernel, bc, nukeReferences }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rtl8812au-${kernel.version}-${version}";
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1fy0f8ihxd0i5kr8gmky8v8xl0ns6bhxfdn64c97c5irzdvg37sr";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bc ];
|
||||
nativeBuildInputs = [ bc nukeReferences ];
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
hardeningDisable = [ "pic" "format" ];
|
||||
|
@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
|
|||
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
nuke-refs $out/lib/modules/*/kernel/net/wireless/*.ko
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Driver for Realtek 802.11ac, rtl8812au, provides the 8812au mod";
|
||||
homepage = https://github.com/zebulon2/rtl8812au-driver-5.2.20;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, kernel, bc }:
|
||||
{ stdenv, fetchFromGitHub, kernel, bc, nukeReferences }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rtl8821au-${kernel.version}-${version}";
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1kmdxgbh0s0v9809kdsi39p0jbm5cf10ivy40h8qj9hn70g1gw8q";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bc ];
|
||||
nativeBuildInputs = [ bc nukeReferences ];
|
||||
buildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
hardeningDisable = [ "pic" "format" ];
|
||||
|
@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
|
|||
mkdir -p "$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
nuke-refs $out/lib/modules/*/kernel/net/wireless/*.ko
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "rtl8821AU, rtl8812AU and rtl8811AU chipset driver with firmware";
|
||||
homepage = https://github.com/zebulon2/rtl8812au;
|
||||
|
|
Loading…
Reference in a new issue