2021-11-12 21:54:23 +07:00
|
|
|
{ fetchFromGitHub, inputs, lib }:
|
2021-07-04 14:10:44 +07:00
|
|
|
let
|
2025-05-19 01:57:24 +00:00
|
|
|
version = "6.14.7";
|
2025-03-27 13:15:47 +00:00
|
|
|
kernelHash = "0w3nqh02vl8f2wsx3fmsvw1pdsnjs5zfqcmv2w2vnqdiwy1vd552";
|
2025-05-19 01:57:24 +00:00
|
|
|
kernelPatchHash = "05a5srmb27gqyv49mxy3rmlxgiinacwbyzmig1hk313m0wl88av3";
|
2021-07-04 14:10:44 +07:00
|
|
|
|
2022-10-03 22:12:14 +07:00
|
|
|
mm = lib.versions.majorMinor version;
|
2025-03-28 00:13:47 +11:00
|
|
|
hasPatch = (builtins.length (builtins.splitVersion version)) == 3;
|
2021-07-04 14:10:44 +07:00
|
|
|
tkgPatches = [
|
|
|
|
|
"0002-clear-patches"
|
|
|
|
|
"0003-glitched-base"
|
2023-12-15 22:34:20 +07:00
|
|
|
"0003-glitched-eevdf-additions"
|
2022-10-03 22:12:14 +07:00
|
|
|
"0003-glitched-cfs"
|
2024-12-07 20:29:14 +11:00
|
|
|
"0007-v${mm}-fsync_legacy_via_futex_waitv"
|
2021-07-04 14:10:44 +07:00
|
|
|
"0012-misc-additions"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
patch = path: {
|
|
|
|
|
name = "patch-${path}";
|
|
|
|
|
patch = path;
|
|
|
|
|
};
|
2022-12-28 20:11:51 +07:00
|
|
|
kernelPatchSrc = {
|
|
|
|
|
name = "patch";
|
|
|
|
|
patch = builtins.fetchurl {
|
|
|
|
|
url = "https://cdn.kernel.org/pub/linux/kernel/v${lib.versions.major version}.x/patch-${version}.xz";
|
|
|
|
|
sha256 = kernelPatchHash;
|
|
|
|
|
};
|
|
|
|
|
};
|
2021-07-04 14:10:44 +07:00
|
|
|
in {
|
|
|
|
|
inherit version;
|
|
|
|
|
|
2022-04-13 22:06:22 +07:00
|
|
|
src = builtins.fetchurl {
|
|
|
|
|
url = "https://cdn.kernel.org/pub/linux/kernel/v${lib.versions.major version}.x/linux-${mm}.tar.xz";
|
|
|
|
|
sha256 = kernelHash;
|
|
|
|
|
};
|
2021-07-04 14:10:44 +07:00
|
|
|
|
2025-03-28 00:13:47 +11:00
|
|
|
kernelPatches = lib.optionals hasPatch [
|
2024-06-11 19:44:49 +10:00
|
|
|
kernelPatchSrc
|
2021-07-10 01:09:36 +07:00
|
|
|
]
|
2021-07-04 14:10:44 +07:00
|
|
|
++ builtins.map (name: {
|
|
|
|
|
inherit name;
|
2021-11-12 21:54:23 +07:00
|
|
|
patch = "${inputs.linux-tkg}/linux-tkg-patches/${mm}/${name}.patch";
|
2023-08-24 20:10:48 +07:00
|
|
|
}) tkgPatches
|
2024-06-11 19:44:49 +10:00
|
|
|
++ [ ];
|
2021-07-04 14:10:44 +07:00
|
|
|
}
|