summaryrefslogtreecommitdiffstats
path: root/maintainers/scripts
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2020-09-10 10:27:21 +0200
committerJon <jonringer@users.noreply.github.com>2020-09-14 21:17:13 -0700
commitbe33b546725f2cac82251870b452091ab6c89831 (patch)
tree4e801284824744b4b16ac3104dd68ff226cd80dd /maintainers/scripts
parent89c781cc50510ed28fdc883d247a6a73ea02e1ad (diff)
maintainers/build: skip packages that don't evaluate
Diffstat (limited to 'maintainers/scripts')
-rw-r--r--maintainers/scripts/build.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/maintainers/scripts/build.nix b/maintainers/scripts/build.nix
index 9b2bf00c803a..bc4355d0aa8e 100644
--- a/maintainers/scripts/build.nix
+++ b/maintainers/scripts/build.nix
@@ -13,8 +13,12 @@ let
let
result = builtins.tryEval
(
- if pkgs.lib.isDerivation pkg && cond name pkg
- then [ (return name pkg) ]
+ if pkgs.lib.isDerivation pkg && cond name pkg then
+ # 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
then packagesWith cond return pkg
else [ ]