Fix dependencies on unknown packages

Triggered by ob-ammonite (used by scala, in emacsattic) depending on
ammonite-term-repl (also in emacsattic). `eself` only contains
emacs-overlay and doomPackageSet.

All of this needs refactoring, but an explicit recursive call fixes the
immediate problem.
This commit is contained in:
Marien Zwart 2024-05-22 23:41:07 +10:00
parent 83302a46ad
commit 4cf47c2fa7
No known key found for this signature in database

View file

@ -219,7 +219,9 @@ let
recipe = writeText "${name}-generated-recipe" ''
(${name} :fetcher github :repo "marienz/made-up"
${optionalString (p ? recipe.files) ":files ${p.recipe.files}"})'';
packageRequires = map (name: eself.${name}) reqlist;
# TODO: refactor out the recursive call to makePackage.
# (Currently needed for dependencies on packages not in epkgs or doom.)
packageRequires = map (name: eself.${name} or (makePackage name {})) reqlist;
}
else origEPkg);
url =