diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-11-27 00:05:30 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-27 00:05:30 +0100 |
commit | ca8caaec5e7581c37b46f79622c81adf52f06314 (patch) | |
tree | 0e0693236f221f1d9ac0fba265a01c196396cb6a /src/nix/command.hh | |
parent | 2c6dbcd5e7a16227e0aef008c62c81220f4b3ffc (diff) |
nix: Add --expr flag
This replaces the '(...)' installable syntax, which is not very
discoverable. The downside is that you can't have multiple expressions
or mix expressions and other installables.
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r-- | src/nix/command.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh index 82dbb55d0..42c14927f 100644 --- a/src/nix/command.hh +++ b/src/nix/command.hh @@ -56,6 +56,7 @@ struct MixFlakeOptions : virtual Args struct SourceExprCommand : virtual Args, EvalCommand, MixFlakeOptions { std::optional<Path> file; + std::optional<std::string> expr; SourceExprCommand(); @@ -106,7 +107,7 @@ struct InstallableCommand : virtual Args, SourceExprCommand private: - std::string _installable{"."}; + std::string _installable{""}; }; /* A command that operates on zero or more store paths. */ |