mirror of
https://github.com/gytis-ivaskevicius/flake-utils-plus.git
synced 2024-08-16 19:40:34 +03:00
fix: try to actually eval what will be ultimately evaluated
This commit is contained in:
parent
2bf0f91643
commit
1c1b3a9389
@ -49,7 +49,6 @@ let
|
|||||||
filter
|
filter
|
||||||
foldl'
|
foldl'
|
||||||
head
|
head
|
||||||
isAttrs
|
|
||||||
isFunction
|
isFunction
|
||||||
listToAttrs
|
listToAttrs
|
||||||
mapAttrs
|
mapAttrs
|
||||||
@ -77,7 +76,7 @@ let
|
|||||||
then attrNames (overlay fakePkgs fakePkgs)
|
then attrNames (overlay fakePkgs fakePkgs)
|
||||||
else [ ];
|
else [ ];
|
||||||
|
|
||||||
isOverlay = it: isFunction it && isFunction (it fakePkgs) && (tryEval (isAttrs (it fakePkgs fakePkgs))).success;
|
isOverlay = it: isFunction it && isFunction (it fakePkgs) && (tryEval (attrNames (it fakePkgs fakePkgs))).success;
|
||||||
|
|
||||||
# get all overlays from inputs
|
# get all overlays from inputs
|
||||||
inputOverlays = mapAttrs
|
inputOverlays = mapAttrs
|
||||||
|
Loading…
Reference in New Issue
Block a user