diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-07-12 16:28:39 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-07-12 16:36:34 +0200 |
commit | aa82f8b2d2a2c42f0d713e8404b668cef1a4b108 (patch) | |
tree | 66f883d00898d6de01b1e4fac0b387393090e2aa /src/nix/installables.cc | |
parent | 731bc65ec04900834ca5e5b8e9dae1aa8c2c1027 (diff) |
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
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r-- | src/nix/installables.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc index d43f86c0c..aa5ef5184 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -102,6 +102,11 @@ struct InstallableStorePath : Installable { return {{isDerivation(storePath) ? storePath : "", {{"out", storePath}}}}; } + + std::optional<Path> getStorePath() override + { + return storePath; + } }; struct InstallableValue : Installable |