git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29765 from nlewo/pr/docker-nix-pager-env-var

dockerTools.examples.nix: set NIX_PAGER=cat environment variable

commit756698f0a737e0654900a2fdc74c5d2e1769f964 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 25 Sep 2017, 11:54 (9 years ago) parenta8c97adff4d7f0
1 file changed+6−4
pkgs/build-support/docker/examples.nix+6−4
pkgs/build-support/docker/examples.nix+6−4
@@ -107,11 +107,13 @@ rec {
107107 nix = buildImageWithNixDb {
108108 name = "nix";
109109 contents = [
110− # nix-store -qR uses the 'more' program which is not included in
111− # the pkgs.nix dependencies. We then have to manually get it
112− # from the 'eject' package:/
113− pkgs.eject
110+ # nix-store uses cat program to display results as specified by
111+ # the image env variable NIX_PAGER.
112+ pkgs.coreutils
114113 pkgs.nix
115114 ];
115+ config = {
116+ Env = [ "NIX_PAGER=cat" ];
117+ };
116118 };
117119}