mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-17 06:59:46 +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:
|
attrName: attrValue:
|
||||||
let
|
let
|
||||||
pretty = lib.generators.toPretty { };
|
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
|
in
|
||||||
if duplicates != [ ] then
|
if duplicates != [ ] then
|
||||||
lib.warn "Duplicate dependencies in ${attrName} of package ${pname}: ${pretty duplicates}"
|
lib.warn "Duplicate dependencies in ${attrName} of package ${pname}: ${pretty duplicates}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue