dockerTools.examples.nix: set NIX_PAGER=cat environment variable
commitff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9
authorAntoine Eiche <lewo@abesis.fr>
dateMon 25 Sep 2017, 09:39 (9 years ago)
parent32e4e2c
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}