linuxManualConfig: fix null kernelPatches with structuredAttrs (#434213)

This commit is contained in:
K900 2025-08-16 15:13:50 +03:00 committed by GitHub
commit 9924e964e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,8 @@ lib.makeOverridable (
KRUSTFLAGS = lib.optionalString withRust "--remap-path-prefix ${rustPlatform.rustLibSrc}=/";
patches =
map (p: p.patch) kernelPatches
# kernelPatches can contain config changes and no actual patch
lib.filter (p: p != null) (map (p: p.patch) kernelPatches)
# Required for deterministic builds along with some postPatch magic.
++ optional (lib.versionOlder version "5.19") ./randstruct-provide-seed.patch
++ optional (lib.versionAtLeast version "5.19") ./randstruct-provide-seed-5.19.patch