fix(nixpkgs-overrides): only extract existing pkgs

This commit is contained in:
phaer 2023-03-20 23:49:46 +01:00 committed by DavHau
parent eb9e70bdd2
commit a47ec7511a

View File

@ -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