1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Merge pull request #12525 from DeterminateSystems/move-mounted-source-accessor

MountedSourceAccessor: Move to libutil
This commit is contained in:
Eelco Dolstra 2025-02-19 11:11:55 +01:00 committed by GitHub
commit 2b3fed4622
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4 additions and 13 deletions

View file

@ -9,7 +9,6 @@
#include "pathlocks.hh"
#include "processes.hh"
#include "git.hh"
#include "mounted-source-accessor.hh"
#include "git-utils.hh"
#include "logging.hh"
#include "finally.hh"

View file

@ -54,7 +54,6 @@ sources = files(
'github.cc',
'indirect.cc',
'mercurial.cc',
'mounted-source-accessor.cc',
'path.cc',
'registry.cc',
'store-path-accessor.cc',
@ -72,7 +71,6 @@ headers = files(
'filtering-source-accessor.hh',
'git-lfs-fetch.hh',
'git-utils.hh',
'mounted-source-accessor.hh',
'registry.hh',
'store-path-accessor.hh',
'tarball.hh',

View file

@ -1,9 +0,0 @@
#pragma once
#include "source-accessor.hh"
namespace nix {
ref<SourceAccessor> makeMountedSourceAccessor(std::map<CanonPath, ref<SourceAccessor>> mounts);
}

View file

@ -153,6 +153,7 @@ sources = files(
'json-utils.cc',
'logging.cc',
'memory-source-accessor.cc',
'mounted-source-accessor.cc',
'position.cc',
'posix-source-accessor.cc',
'references.cc',

View file

@ -1,4 +1,4 @@
#include "mounted-source-accessor.hh"
#include "source-accessor.hh"
namespace nix {

View file

@ -214,4 +214,6 @@ ref<SourceAccessor> getFSSourceAccessor();
*/
ref<SourceAccessor> makeFSSourceAccessor(std::filesystem::path root);
ref<SourceAccessor> makeMountedSourceAccessor(std::map<CanonPath, ref<SourceAccessor>> mounts);
}