Skip to content

raspberry-pi: replace deprecated lib.overrideDerivation with .overrideAttrs#1839

Open
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
JamieMagee:raspberry-pi/replace-overrideDerivation
Open

raspberry-pi: replace deprecated lib.overrideDerivation with .overrideAttrs#1839
JamieMagee wants to merge 1 commit intoNixOS:masterfrom
JamieMagee:raspberry-pi/replace-overrideDerivation

Conversation

@JamieMagee
Copy link
Copy Markdown
Member

Description of changes

lib.overrideDerivation is deprecated and strips passthru attributes (.configfile, .moduleBuildDependencies, etc.) from the kernel derivation, breaking downstream customization. This was the only usage in the repo.

.overrideAttrs preserves passthru. postConfigure and postFixup bodies are unchanged.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

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.
@JamieMagee JamieMagee force-pushed the raspberry-pi/replace-overrideDerivation branch from d743ab3 to d751433 Compare April 24, 2026 21:43
@JamieMagee
Copy link
Copy Markdown
Member Author

JamieMagee commented Apr 26, 2026

@concatime @fkokosinski @Cryolitia I know you're active in contributing and reviewing Raspberry Pi changes. If you have time, could you review this, and the other Raspberry Pi changes I have please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant