···164164165165 RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;
166166167167+ # avoid leaking Rust source file names into the final binary, which adds
168168+ # a false dependency on rust-lib-src on targets with uncompressed kernels
169169+ KRUSTFLAGS = lib.optionalString withRust "--remap-path-prefix ${rustPlatform.rustLibSrc}=/";
170170+167171 patches =
168172 map (p: p.patch) kernelPatches
169173 # Required for deterministic builds along with some postPatch magic.
···189189 ];
190190 };
191191192192+ linux_6_12 = callPackage ../os-specific/linux/kernel/mainline.nix {
193193+ branch = "6.12";
194194+ kernelPatches = [
195195+ kernelPatches.bridge_stp_helper
196196+ kernelPatches.request_key_helper
197197+ ];
198198+ };
199199+192200 linux_testing = let
193201 testing = callPackage ../os-specific/linux/kernel/mainline.nix {
194202 # A special branch that tracks the kernel under the release process
···626634 linux_6_1 = recurseIntoAttrs (packagesFor kernels.linux_6_1);
627635 linux_6_6 = recurseIntoAttrs (packagesFor kernels.linux_6_6);
628636 linux_6_11 = recurseIntoAttrs (packagesFor kernels.linux_6_11);
637637+ linux_6_12 = recurseIntoAttrs (packagesFor kernels.linux_6_12);
629638 } // lib.optionalAttrs config.allowAliases {
630639 linux_4_14 = throw "linux 4.14 was removed because it will reach its end of life within 23.11"; # Added 2023-10-11
631640 linux_4_19 = throw "linux 4.19 was removed because it will reach its end of life within 24.11"; # Added 2024-09-21
···691700 packageAliases = {
692701 linux_default = packages.linux_6_6;
693702 # Update this when adding the newest kernel major version!
694694- linux_latest = packages.linux_6_11;
703703+ linux_latest = packages.linux_6_12;
695704 linux_mptcp = throw "'linux_mptcp' has been moved to https://github.com/teto/mptcp-flake";
696705 linux_rt_default = packages.linux_rt_5_15;
697706 linux_rt_latest = packages.linux_rt_6_6;