aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-01-31 16:14:47 +0100
committerEelco Dolstra <edolstra@gmail.com>2018-01-31 16:24:43 +0100
commit6fa690291a0ca81ded59ab3db1745ce2dfef84fd (patch)
tree296f49d4cc471d2dfd9327c6b5933b10e51545ea /src/nix/command.hh
parent8af911be5ccb11f05615451fc7e90377ede7fba7 (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.hh2
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;