diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-01-31 16:14:47 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-01-31 16:24:43 +0100 |
commit | 6fa690291a0ca81ded59ab3db1745ce2dfef84fd (patch) | |
tree | 296f49d4cc471d2dfd9327c6b5933b10e51545ea /src/nix/command.hh | |
parent | 8af911be5ccb11f05615451fc7e90377ede7fba7 (diff) |
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).
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r-- | src/nix/command.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh index 6b34e3881..a7863c49f 100644 --- a/src/nix/command.hh +++ b/src/nix/command.hh @@ -5,6 +5,8 @@ namespace nix { +extern std::string programPath; + struct Value; class Bindings; class EvalState; |