aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl-overlays.nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcmd/repl-overlays.nix')
-rw-r--r--src/libcmd/repl-overlays.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcmd/repl-overlays.nix b/src/libcmd/repl-overlays.nix
new file mode 100644
index 000000000..33ce49482
--- /dev/null
+++ b/src/libcmd/repl-overlays.nix
@@ -0,0 +1,8 @@
+info:
+initial:
+functions:
+let final = builtins.foldl'
+ (prev: function: prev // (function info final prev))
+ initial
+ functions;
+in final