mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
kdePackages.mkKdeDerivation: handle null
build inputs
This commit is contained in:
parent
7f1865a563
commit
c97f8bef72
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ let
|
|||
attrName: attrValue:
|
||||
let
|
||||
pretty = lib.generators.toPretty { };
|
||||
duplicates = builtins.filter (dep: (builtins.elem (lib.getName dep) filteredDepNames)) attrValue;
|
||||
duplicates = builtins.filter (
|
||||
dep: dep != null && builtins.elem (lib.getName dep) filteredDepNames
|
||||
) attrValue;
|
||||
in
|
||||
if duplicates != [ ] then
|
||||
lib.warn "Duplicate dependencies in ${attrName} of package ${pname}: ${pretty duplicates}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue