flakes/packages/linux-lava/sources.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, inputs, lib }:
let
2025-03-17 13:11:42 +00:00
version = "6.13.7";
2025-03-08 23:44:45 +11:00
kernelHash = "0vhdz1as27kxav81rkf6fm85sqrbj5hjhz5hpyxcd5b6p1pcr7g7";
2025-03-17 13:11:42 +00:00
kernelPatchHash = "0akxqc8fdf6gkiy967crp7m1ikidd3rlhx804y3da1jl75dgqcrw";
mm = lib.versions.majorMinor version;
patchVer = lib.versions.patch version;
tkgPatches = [
"0002-clear-patches"
"0003-glitched-base"
2023-12-15 22:34:20 +07:00
"0003-glitched-eevdf-additions"
"0003-glitched-cfs"
2024-12-07 20:29:14 +11:00
"0007-v${mm}-fsync_legacy_via_futex_waitv"
2024-06-11 19:44:49 +10:00
"0007-v${mm}-ntsync"
"0012-misc-additions"
];
patch = path: {
name = "patch-${path}";
patch = path;
};
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;
};
};
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;
};
kernelPatches = lib.optionals (patchVer != 0) [
2024-06-11 19:44:49 +10:00
kernelPatchSrc
2021-07-10 01:09:36 +07:00
]
++ builtins.map (name: {
inherit name;
patch = "${inputs.linux-tkg}/linux-tkg-patches/${mm}/${name}.patch";
}) tkgPatches
2024-06-11 19:44:49 +10:00
++ [ ];
}