maintainers: remove email for amuckstot30 (#360059)
[NixPkgs.git] / pkgs / os-specific / linux / kernel / patches.nix
blob9e15991dd635ad267d65d5a2e0a10a18b2df662f
1 { lib, fetchpatch, fetchurl }:
4   ath_regd_optional = rec {
5     name = "ath_regd_optional";
6     patch = fetchpatch {
7       name = name + ".patch";
8       url = "https://github.com/openwrt/openwrt/raw/ed2015c38617ed6624471e77f27fbb0c58c8c660/package/kernel/mac80211/patches/ath/402-ath_regd_optional.patch";
9       sha256 = "1ssDXSweHhF+pMZyd6kSrzeW60eb6MO6tlf0il17RC0=";
10       postFetch = ''
11         sed -i 's/CPTCFG_/CONFIG_/g' $out
12         sed -i '/--- a\/local-symbols/,$d' $out
13       '';
14     };
15   };
17   bridge_stp_helper =
18     { name = "bridge-stp-helper";
19       patch = ./bridge-stp-helper.patch;
20     };
22   # Reverts the buggy commit causing https://bugzilla.kernel.org/show_bug.cgi?id=217802
23   dell_xps_regression = {
24     name = "dell_xps_regression";
25     patch = fetchpatch {
26       name = "Revert-101bd907b424-misc-rtsx-judge-ASPM-Mode-to-set.patch";
27       url = "https://raw.githubusercontent.com/openSUSE/kernel-source/1b02b1528a26f4e9b577e215c114d8c5e773ee10/patches.suse/Revert-101bd907b424-misc-rtsx-judge-ASPM-Mode-to-set.patch";
28       sha256 = "sha256-RHJdQ4p0msTOVPR+/dYiKuwwEoG9IpIBqT4dc5cJjf8=";
29     };
30   };
32   request_key_helper =
33     { name = "request-key-helper";
34       patch = ./request-key-helper.patch;
35     };
37   request_key_helper_updated =
38     { name = "request-key-helper-updated";
39       patch = ./request-key-helper-updated.patch;
40     };
42   hardened = let
43     mkPatch = kernelVersion: { version, sha256, patch }: let src = patch; in {
44       name = lib.removeSuffix ".patch" src.name;
45       patch = fetchurl (lib.filterAttrs (k: v: k != "extra") src);
46       extra = src.extra;
47       inherit version sha256;
48     };
49     patches = lib.importJSON ./hardened/patches.json;
50   in lib.mapAttrs mkPatch patches;
52   # Adapted for Linux 5.4 from:
53   # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=04896832c94aae4842100cafb8d3a73e1bed3a45
54   rtl8761b_support =
55     { name = "rtl8761b-support";
56       patch = ./rtl8761b-support.patch;
57     };
59   export-rt-sched-migrate = {
60     name = "export-rt-sched-migrate";
61     patch = ./export-rt-sched-migrate.patch;
62   };