mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
maintainers/build: skip packages that don't evaluate
This commit is contained in:
parent
89c781cc50
commit
be33b54672
@ -13,8 +13,12 @@ let
|
|||||||
let
|
let
|
||||||
result = builtins.tryEval
|
result = builtins.tryEval
|
||||||
(
|
(
|
||||||
if pkgs.lib.isDerivation pkg && cond name pkg
|
if pkgs.lib.isDerivation pkg && cond name pkg then
|
||||||
then [ (return name pkg) ]
|
# Skip packages whose closure fails on evaluation.
|
||||||
|
# This happens for pkgs like `python27Packages.djangoql`
|
||||||
|
# that have disabled Python pkgs as dependencies.
|
||||||
|
builtins.seq pkg.outPath
|
||||||
|
[ (return name pkg) ]
|
||||||
else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false
|
else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false
|
||||||
then packagesWith cond return pkg
|
then packagesWith cond return pkg
|
||||||
else [ ]
|
else [ ]
|
||||||
|
Loading…
Reference in New Issue
Block a user