From ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Mon, 25 Sep 2017 09:39:15 +0200 Subject: [PATCH] dockerTools.examples.nix: set NIX_PAGER=cat environment variable --- pkgs/build-support/docker/examples.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 1a8b9c7f8ed4..498028fb0886 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -107,11 +107,13 @@ rec { nix = buildImageWithNixDb { name = "nix"; contents = [ - # nix-store -qR uses the 'more' program which is not included in - # the pkgs.nix dependencies. We then have to manually get it - # from the 'eject' package:/ - pkgs.eject + # nix-store uses cat program to display results as specified by + # the image env variable NIX_PAGER. + pkgs.coreutils pkgs.nix ]; + config = { + Env = [ "NIX_PAGER=cat" ]; + }; }; }