From d0815c43930aee850e31e11e954d6d84162adb82 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 3 Oct 2019 17:54:05 +0200 Subject: [PATCH] Add lib and pkgs to repl Side effect: expose them in eval-composition. --- src/nix/eval-composition.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nix/eval-composition.nix b/src/nix/eval-composition.nix index d4a2b57..c890973 100644 --- a/src/nix/eval-composition.nix +++ b/src/nix/eval-composition.nix @@ -35,4 +35,8 @@ let in # Typically you need composition.config.build.dockerComposeYaml - composition + composition // { + # throw in lib and pkgs for repl convenience + inherit lib; + inherit (composition.config._module.args) pkgs; + }