Merge pull request #166056 from IvarWithoutBones/fix/rtl8821ce-5_17
This commit is contained in:
commit
918f86f622
@ -1,4 +1,10 @@
|
||||
{ lib, stdenv, fetchFromGitHub, kernel, bc }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, kernel
|
||||
, bc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "rtl8821ce";
|
||||
@ -11,6 +17,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "18ma8a8h1l90dss0k6al7q6plwr57jc9g67p22g9917k1jfbhm97";
|
||||
};
|
||||
|
||||
# Fixes the build on kernel >= 5.17. Can be removed once https://github.com/tomaspinho/rtl8821ce/pull/267 is merged
|
||||
patches = [(fetchpatch {
|
||||
url = "https://github.com/tomaspinho/rtl8821ce/commit/7b9e55df64b10fed785f22df9f36ed4a30b59d0e.patch";
|
||||
sha256 = "sha256-mpAWOG1aXsklGuDbrRB9Vd36mgeCdctKQaWuuoqEEp0=";
|
||||
})];
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
nativeBuildInputs = [ bc ] ++ kernel.moduleBuildDependencies;
|
||||
@ -35,7 +47,7 @@ stdenv.mkDerivation rec {
|
||||
homepage = "https://github.com/tomaspinho/rtl8821ce";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.linux;
|
||||
broken = stdenv.isAarch64 || kernel.kernelAtLeast "5.17";
|
||||
broken = stdenv.isAarch64;
|
||||
maintainers = with maintainers; [ hhm ivar ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user