From a47ec7511afcedd9b1a1f92e2ebf1cd9ce077824 Mon Sep 17 00:00:00 2001 From: phaer Date: Mon, 20 Mar 2023 23:49:46 +0100 Subject: [PATCH] fix(nixpkgs-overrides): only extract existing pkgs --- v1/nix/modules/drv-parts/nixpkgs-overrides/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v1/nix/modules/drv-parts/nixpkgs-overrides/default.nix b/v1/nix/modules/drv-parts/nixpkgs-overrides/default.nix index 02f295ea..d686cc8e 100644 --- a/v1/nix/modules/drv-parts/nixpkgs-overrides/default.nix +++ b/v1/nix/modules/drv-parts/nixpkgs-overrides/default.nix @@ -19,7 +19,10 @@ in l.filterAttrs (name: _: ! excludedNixpkgsAttrs ? ${name}) pythonAttrs; - extracted = extractPythonAttrs config.deps.python.pkgs.${config.name}; + extracted = + if config.deps.python.pkgs ? config.name + then extractPythonAttrs config.deps.python.pkgs.${config.name} + else {}; in { imports = [ ./interface.nix