1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Never copy nix store path to nix store

Fixes #11228
This commit is contained in:
Yuxuan Shui 2024-07-31 19:18:26 +01:00
parent ed0934b884
commit 8e9f12526f

View file

@ -150,7 +150,7 @@ struct PathInputScheme : InputScheme
store->addTempRoot(*storePath);
time_t mtime = 0;
if (!storePath || storePath->name() != "source" || !store->isValidPath(*storePath)) {
if (!storePath || !store->isValidPath(*storePath)) {
// FIXME: try to substitute storePath.
auto src = sinkToSource([&](Sink & sink) {
mtime = dumpPathAndGetMtime(absPath, sink, defaultPathFilter);