1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00

Merge pull request #29765 from nlewo/pr/docker-nix-pager-env-var

dockerTools.examples.nix: set NIX_PAGER=cat environment variable
This commit is contained in:
Jörg Thalheim 2017-09-25 11:54:23 +01:00 committed by GitHub
commit 756698f0a7

View file

@ -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" ];
};
};
}