mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 09:36:47 +02:00
Formatting
This commit is contained in:
parent
20558e0462
commit
ffc280f27a
2 changed files with 3 additions and 7 deletions
|
@ -3,12 +3,10 @@
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
||||||
ref<SourceAccessor> makeStorePathAccessor(
|
ref<SourceAccessor> makeStorePathAccessor(ref<Store> store, const StorePath & storePath)
|
||||||
ref<Store> store,
|
|
||||||
const StorePath & storePath)
|
|
||||||
{
|
{
|
||||||
// FIXME: should use `store->getFSAccessor()`
|
// FIXME: should use `store->getFSAccessor()`
|
||||||
auto root = std::filesystem::path { store->toRealPath(storePath) };
|
auto root = std::filesystem::path{store->toRealPath(storePath)};
|
||||||
auto accessor = makeFSSourceAccessor(root);
|
auto accessor = makeFSSourceAccessor(root);
|
||||||
accessor->setPathDisplay(root.string());
|
accessor->setPathDisplay(root.string());
|
||||||
return accessor;
|
return accessor;
|
||||||
|
|
|
@ -7,9 +7,7 @@ namespace nix {
|
||||||
class StorePath;
|
class StorePath;
|
||||||
class Store;
|
class Store;
|
||||||
|
|
||||||
ref<SourceAccessor> makeStorePathAccessor(
|
ref<SourceAccessor> makeStorePathAccessor(ref<Store> store, const StorePath & storePath);
|
||||||
ref<Store> store,
|
|
||||||
const StorePath & storePath);
|
|
||||||
|
|
||||||
SourcePath getUnfilteredRootPath(CanonPath path);
|
SourcePath getUnfilteredRootPath(CanonPath path);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue