Skip to content

Commit

Permalink
chore: Nix: avoid import errors for now
Browse files Browse the repository at this point in the history
Gotta refactor this anyway
  • Loading branch information
Kha committed Dec 4, 2022
1 parent 9e83115 commit 0b243f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nix/buildLeanPackage.nix
Expand Up @@ -193,9 +193,11 @@ with builtins; let
# recursion to memoize common dependencies.
buildModAndDeps = mod: modMap: if modMap ? ${mod} || externalModMap ? ${mod} then modMap else
let
deps = if modDepsMap.${mod}.errors == []
deps = if modDepsMap ? ${mod}
then if modDepsMap.${mod}.errors == []
then map (m: m.module) modDepsMap.${mod}.imports
else abort "errors while parsing imports of ${mod}:\n${lib.concatStringsSep "\n" modDepsMap.${mod}.errors}";
else abort "errors while parsing imports of ${mod}:\n${lib.concatStringsSep "\n" modDepsMap.${mod}.errors}"
else [];
modMap' = lib.foldr buildModAndDeps modMap deps;
in modMap' // { ${mod} = mkMod mod (map (dep: if modMap' ? ${dep} then modMap'.${dep} else externalModMap.${dep}) deps); };
makeEmacsWrapper = name: emacs: lean: writeShellScriptBin name ''
Expand Down

0 comments on commit 0b243f0

Please sign in to comment.