diff options
author | Antoine Eiche <lewo@abesis.fr> | 2017-09-25 09:39:15 +0200 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2017-09-25 09:39:15 +0200 |
commit | ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9 (patch) | |
tree | c346b22dc4d649087bab92d6f415d8a0e446d2d1 /pkgs/build-support/docker | |
parent | 32e4e2c47ba464baa32b92c53eba6d5d169125c0 (diff) | |
download | nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar.gz nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar.bz2 nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar.lz nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar.xz nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.tar.zst nixlib-ff4d7f0fd2122e0e8bffeb10bc32927c280a1fd9.zip |
dockerTools.examples.nix: set NIX_PAGER=cat environment variable
Diffstat (limited to 'pkgs/build-support/docker')
-rw-r--r-- | pkgs/build-support/docker/examples.nix | 10 |
1 files 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" ]; + }; }; } |