pkgs/impure-overlays.nix: must be functions

followup to #466860
This commit is contained in:
Simon Hauser
2025-12-03 15:22:35 +01:00
parent b64010430c
commit 6264db5ddd
+4 -1
View File
@@ -38,7 +38,10 @@ let
)
else
# it's a file, so the result is the contents of the file itself
[ (import path) ];
let
overlay = import path;
in
if builtins.isFunction overlay then [ overlay ] else overlay;
in
if pathOverlays != "" && builtins.pathExists pathOverlays then
overlays pathOverlays