mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 09:49:36 +01:00
Devirtualize double-copied paths
Borrowed from the original lazy-trees branch.
This commit is contained in:
parent
e099a5bc67
commit
0c0dda3b29
4 changed files with 33 additions and 2 deletions
|
|
@ -2539,7 +2539,7 @@ static void prim_filterSource(EvalState & state, const PosIdx pos, Value * * arg
|
|||
"while evaluating the second argument (the path to filter) passed to 'builtins.filterSource'");
|
||||
state.forceFunction(*args[0], pos, "while evaluating the first argument passed to builtins.filterSource");
|
||||
|
||||
addPath(state, pos, path.baseName(), path, args[0], ContentAddressMethod::Raw::NixArchive, std::nullopt, v, context);
|
||||
addPath(state, pos, state.computeBaseName(path), path, args[0], ContentAddressMethod::Raw::NixArchive, std::nullopt, v, context);
|
||||
}
|
||||
|
||||
static RegisterPrimOp primop_filterSource({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue