mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
computeBaseName(): Respect the original store path name
This commit is contained in:
parent
9d87ab1dc8
commit
2aa3655166
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ std::string EvalState::computeBaseName(const SourcePath & path)
|
||||||
"This can typically be avoided by rewriting an attribute like `src = ./.` "
|
"This can typically be avoided by rewriting an attribute like `src = ./.` "
|
||||||
"to `src = builtins.path { path = ./.; name = \"source\"; }`.",
|
"to `src = builtins.path { path = ./.; name = \"source\"; }`.",
|
||||||
path);
|
path);
|
||||||
return std::string(fetchToStore(*store, path, FetchMode::DryRun).to_string());
|
return std::string(fetchToStore(*store, path, FetchMode::DryRun, storePath->name()).to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return std::string(path.baseName());
|
return std::string(path.baseName());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue