mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 22:11:45 +03:00
nixos/home-assistant: fix package override
The attributes can be missing on the package, since they're optional, so catch that by adding empty defaults.
This commit is contained in:
parent
54105e1f85
commit
047429df52
@ -58,8 +58,8 @@ let
|
||||
package = (cfg.package.override (oldArgs: {
|
||||
# Respect overrides that already exist in the passed package and
|
||||
# concat it with values passed via the module.
|
||||
extraComponents = oldArgs.extraComponents ++ extraComponents;
|
||||
extraPackages = ps: (oldArgs.extraPackages ps) ++ (cfg.extraPackages ps);
|
||||
extraComponents = oldArgs.extraComponents or [] ++ extraComponents;
|
||||
extraPackages = ps: (oldArgs.extraPackages or (_: []) ps) ++ (cfg.extraPackages ps);
|
||||
}));
|
||||
in {
|
||||
imports = [
|
||||
|
Loading…
Reference in New Issue
Block a user