From 6fa690291a0ca81ded59ab3db1745ce2dfef84fd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 Jan 2018 16:14:47 +0100 Subject: Add 'nix upgrade-nix' command This command upgrades Nix to the latest stable version by installing a store path obtained from https://github.com/NixOS/nixpkgs/raw/master/nixos/modules/installer/tools/nix-fallback-paths.nix which is the same store path that the installer at https://nixos.org/nix/install.sh uses. The upgrade fails if Nix is not installed in a profile (e.g. on NixOS, or when installed outside of the Nix store). --- doc/manual/release-notes/rl-1.12.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/manual/release-notes') diff --git a/doc/manual/release-notes/rl-1.12.xml b/doc/manual/release-notes/rl-1.12.xml index 29943e3e6e97..89ec920949b6 100644 --- a/doc/manual/release-notes/rl-1.12.xml +++ b/doc/manual/release-notes/rl-1.12.xml @@ -79,6 +79,11 @@ nix add-to-store (970366266b8df712f5f9cedb45af183ef5a8357f). + nix upgrade-nix upgrades Nix + to the latest stable version. This requires that Nix is + installed in a profile. (Thus it won’t work on NixOS, or if it’s + installed outside of the Nix store.) + Progress indicator. All options are available as flags now -- cgit 1.4.1