Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: e981546ab777
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 23da995a02b0
Choose a head ref
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Sep 6, 2018

  1. nixos/shells: avoid overriding the environment for child shells

    A shared exported guard `__NIXOS_SET_ENVIRONMENT_DONE` is introduced that can
    be used to prevent child shells from sourcing `system.build.setEnvironment`
    the second time.
    
    This fixes e.g. `nix run derivation` when run from e.g. ZSH through the console or
    ssh. Before this Bash would resource the common environment resetting the `PATH`
    environment variable.
    
    We also export `system.build.setEnvironment` to `/etc/set-environment` making it
    easy to reset the common environment with `. /etc/set-environment` when
    needed and to grep for environment variables in `/etc` (which was the
    motivation of #30418).
    
    This reverts changes made in b00a3fc
    (the original #30418).
    
    (cherry picked from commit d273db4)
    hedning authored and xeji committed Sep 6, 2018
    Copy the full SHA
    0cf3e0b View commit details
    Browse the repository at this point in the history
  2. nixos/shells: fix indent everywhere

    to comply with `doc/coding-conventions.xml`
    
    (cherry picked from commit 8952375)
    oxij authored and xeji committed Sep 6, 2018
    Copy the full SHA
    23da995 View commit details
    Browse the repository at this point in the history