From 8f0c9853d54987e50134164a80f7715025bcca4d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 10 Nov 2024 19:33:56 +0000 Subject: [PATCH] pypy3Packages.home-assistant-chip-clusters: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails as: nix build --no-link -f. pypy3Packages.home-assistant-chip-clusters error: … while evaluating the attribute 'drvPath' at lib/customisation.nix:365:7: 364| in commonAttrs // { 365| drvPath = assert condition; drv.drvPath; | ^ 366| outPath = assert condition; drv.outPath; … while evaluating the attribute 'drvPath' at lib/customisation.nix:365:7: 364| in commonAttrs // { 365| drvPath = assert condition; drv.drvPath; | ^ 366| outPath = assert condition; drv.outPath; … while calling the 'derivationStrict' builtin at :34:12: 33| 34| strict = derivationStrict drvAttrs; | ^ 35| (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: expected a set but found null: null It happens because one of the dependencies is `null`: nix-repl> pypy310Packages.brotlicffi.propagatedBuildInputs [ null «derivation /nix/store/1jdx98sk2ii89m6ksbfg7rv8ryp9wdgi-pypy3.10-7.3.12.drv» ] Let's filter those out. --- .../python-modules/home-assistant-chip-wheels/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix b/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix index caec0be06cbf..469905525324 100644 --- a/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix +++ b/pkgs/development/python-modules/home-assistant-chip-wheels/default.nix @@ -229,7 +229,7 @@ stdenv.mkDerivation rec { map (dep: { name = dep.name; value = dep; - }) list + }) (lib.filter (x: x != null) list) ); saturateDependencies = deps: