mirror of
https://github.com/NixOS/nix.git
synced 2025-12-21 16:31:07 +01:00
Use std::filesystem::path instead of Path in libexpr.
This commit is contained in:
parent
84079e10cf
commit
697b068756
7 changed files with 41 additions and 37 deletions
|
|
@ -103,9 +103,9 @@ const std::string & EvalSettings::getCurrentSystem() const
|
|||
return evalSystem != "" ? evalSystem : settings.thisSystem.get();
|
||||
}
|
||||
|
||||
Path getNixDefExpr()
|
||||
std::filesystem::path getNixDefExpr()
|
||||
{
|
||||
return settings.useXDGBaseDirectories ? getStateDir() + "/defexpr" : getHome() + "/.nix-defexpr";
|
||||
return settings.useXDGBaseDirectories ? getStateDir() / "defexpr" : getHome() / ".nix-defexpr";
|
||||
}
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
|
|
@ -366,6 +366,6 @@ struct EvalSettings : Config
|
|||
/**
|
||||
* Conventionally part of the default nix path in impure mode.
|
||||
*/
|
||||
Path getNixDefExpr();
|
||||
std::filesystem::path getNixDefExpr();
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue