Skip to content

Commit

Permalink
linuxPackages.rtl8821ce: patch for 5.19.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
superherointj committed Aug 23, 2022
1 parent 2c16674 commit 14dc1c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/os-specific/linux/rtl8821ce/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-4PgISOjCSSGymz96VwE4jzcUiOEO+Ocuk2kJVIA+TQM=";
};

patches = fetchpatch {
url = "https://github.com/tomaspinho/rtl8821ce/pull/291.patch";
sha256 = "sha256-GCZ/iPtzF7PP0ZgagBev6r7IVQ2VenPoLKL9GnPSt+U=";
};

hardeningDisable = [ "pic" ];

nativeBuildInputs = [ bc ] ++ kernel.moduleBuildDependencies;
Expand All @@ -41,7 +46,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/tomaspinho/rtl8821ce";
license = licenses.gpl2Only;
platforms = platforms.linux;
broken = stdenv.isAarch64;
maintainers = with maintainers; [ hhm ivar ];
broken = stdenv.isAarch64 || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
};
}

0 comments on commit 14dc1c4

Please sign in to comment.