aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/develop.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc
index 7a5f7e218..d3c4761a7 100644
--- a/src/nix/develop.cc
+++ b/src/nix/develop.cc
@@ -248,9 +248,9 @@ struct Common : InstallableCommand, MixProfile
}
/* Substitute redirects. */
- for (auto & [installableS, dir] : redirects) {
- dir = absPath(dir);
- auto installable = parseInstallable(store, installableS);
+ for (auto & [installable_, dir_] : redirects) {
+ auto dir = absPath(dir_);
+ auto installable = parseInstallable(store, installable_);
auto buildable = installable->toBuildable();
auto doRedirect = [&](const StorePath & path)
{