raspberry-pi: replace lib.overrideDerivation with .overrideAttrs

lib.overrideDerivation is deprecated and strips passthru attributes
(.configfile, .moduleBuildDependencies, etc.) from the kernel
derivation, which breaks downstream users expecting a standard
buildLinux output.

.overrideAttrs preserves passthru and matches every other custom
kernel in this repo.
This commit is contained in:
Jamie Magee committed 2026-04-24 14:43:21 -07:00
1 parent 2096f3f411
commit d7514338e2
1 file changed
+3 -4
+3 -4
View File
@@ -14,7 +14,6 @@ let
tag = "stable_20250916"; tag = "stable_20250916";
hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0=="; hash = "sha256-HG8Oc04V2t54l0SOn4gKmNJWQUrZfjWusgKcWvx74H0==";
in in
lib.overrideDerivation
(buildLinux ( (buildLinux (
args args
// { // {
@@ -64,8 +63,8 @@ lib.overrideDerivation
ignoreConfigErrors = true; ignoreConfigErrors = true;
} }
// (args.argsOverride or { }) // (args.argsOverride or { })
)) )).overrideAttrs
(_oldAttrs: { {
postConfigure = '' postConfigure = ''
# The v7 defconfig has this set to '-v7' which screws up our modDirVersion. # The v7 defconfig has this set to '-v7' which screws up our modDirVersion.
sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/' sed -i $buildRoot/.config -e 's/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=""/'
@@ -110,4 +109,4 @@ lib.overrideDerivation
copyDTB bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb copyDTB bcm2710-rpi-cm3.dtb bcm2837-rpi-cm3.dtb
copyDTB bcm2711-rpi-4-b.dtb bcm2838-rpi-4-b.dtb copyDTB bcm2711-rpi-4-b.dtb bcm2838-rpi-4-b.dtb
''; '';
}) }