aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-19 12:03:15 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-22 13:40:30 +0200
commit750ce500c221ecd4720a5b02e3f3cbb0bc05ef9d (patch)
tree67a3fd689cba89a0c1b923f313b9a3c8b383bbe6 /src/nix
parentf9438fb64a223c05ebcfffa9706e1ca811a87d70 (diff)
Fix clang build
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)
{