Skip to content

Commit 5d6ab84

Browse files
committed
Fix nix run on an app with lazy trees enabled
1 parent 90bec9c commit 5d6ab84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nix/app.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ UnresolvedApp InstallableValue::toApp(EvalState & state)
9090
},
9191
[&](const NixStringContextElem::Opaque & o) -> DerivedPath {
9292
return DerivedPath::Opaque{
93-
.path = o.path,
93+
.path = state.devirtualize(o.path),
9494
};
9595
},
9696
[&](const NixStringContextElem::Path & p) -> DerivedPath {
@@ -102,7 +102,7 @@ UnresolvedApp InstallableValue::toApp(EvalState & state)
102102

103103
return UnresolvedApp{App{
104104
.context = std::move(context2),
105-
.program = program,
105+
.program = state.devirtualize(program, context),
106106
}};
107107
}
108108

0 commit comments

Comments
 (0)