mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-06 16:03:29 +01:00
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:
1 parent
2096f3f411
commit
d7514338e2
1 file changed
+3
-4
@@ -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
|
||||||
'';
|
'';
|
||||||
})
|
}
|
||||||
Reference in new issue
Block a user