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/nix
base: b45628a172dd
Choose a base ref
...
head repository: NixOS/nix
compare: aa82f8b2d2a2
Choose a head ref
  • 4 commits
  • 5 files changed
  • 1 contributor

Commits on Jul 12, 2019

  1. nix build: Add '--profile' flag

    This replaces 'nix-env --set'. For example:
    
      $ nix build --profile /nix/var/nix/profiles/system \
          ~/Misc/eelco-configurations:nixosConfigurations.vyr.config.system.build.toplevel
    
    updates the NixOS system profile from a flake.
    
    This could have been a separate command (e.g. 'nix set-profile') but
    1) '--profile' is pretty similar to '--out-link'; and 2) '--profile'
    could be useful for other command (like 'nix dev-shell').
    edolstra committed Jul 12, 2019
    Copy the full SHA
    990b5b2 View commit details
    Browse the repository at this point in the history
  2. nix dev-shell: Add --profile flag

    This is useful to prevent the shell environment from being
    garbage-collected.
    edolstra committed Jul 12, 2019
    Copy the full SHA
    7ba9281 View commit details
    Browse the repository at this point in the history
  3. Refactor a bit

    edolstra committed Jul 12, 2019
    Copy the full SHA
    731bc65 View commit details
    Browse the repository at this point in the history
  4. nix dev-shell: Make it possible to enter a profile

    For example:
    
      $ nix dev-shell --profile /tmp/my-shell dwarffs
      (later)
      $ nix dev-shell /tmp/my-shell
    edolstra committed Jul 12, 2019
    Copy the full SHA
    aa82f8b View commit details
    Browse the repository at this point in the history