1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-22 18:29:36 +01:00

Move nar-accessor.{cc,hh} to libutil

File-system-object-layer functionality doesn't depend on store-layer
concets, and therefore doesn't need to live inside there.
This commit is contained in:
John Ericson 2025-11-19 17:35:13 -05:00
parent 437b9b9879
commit d17bfe3866
10 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@
#include "nix/util/sync.hh" #include "nix/util/sync.hh"
#include "nix/store/remote-fs-accessor.hh" #include "nix/store/remote-fs-accessor.hh"
#include "nix/store/nar-info-disk-cache.hh" #include "nix/store/nar-info-disk-cache.hh"
#include "nix/store/nar-accessor.hh" #include "nix/util/nar-accessor.hh"
#include "nix/util/thread-pool.hh" #include "nix/util/thread-pool.hh"
#include "nix/util/callback.hh" #include "nix/util/callback.hh"
#include "nix/util/signals.hh" #include "nix/util/signals.hh"

View file

@ -55,7 +55,6 @@ headers = [ config_pub_h ] + files(
'machines.hh', 'machines.hh',
'make-content-addressed.hh', 'make-content-addressed.hh',
'names.hh', 'names.hh',
'nar-accessor.hh',
'nar-info-disk-cache.hh', 'nar-info-disk-cache.hh',
'nar-info.hh', 'nar-info.hh',
'outputs-spec.hh', 'outputs-spec.hh',

View file

@ -300,7 +300,6 @@ sources = files(
'make-content-addressed.cc', 'make-content-addressed.cc',
'misc.cc', 'misc.cc',
'names.cc', 'names.cc',
'nar-accessor.cc',
'nar-info-disk-cache.cc', 'nar-info-disk-cache.cc',
'nar-info.cc', 'nar-info.cc',
'optimise-store.cc', 'optimise-store.cc',

View file

@ -1,6 +1,6 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include "nix/store/remote-fs-accessor.hh" #include "nix/store/remote-fs-accessor.hh"
#include "nix/store/nar-accessor.hh" #include "nix/util/nar-accessor.hh"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View file

@ -50,6 +50,7 @@ headers = files(
'memory-source-accessor.hh', 'memory-source-accessor.hh',
'mounted-source-accessor.hh', 'mounted-source-accessor.hh',
'muxable-pipe.hh', 'muxable-pipe.hh',
'nar-accessor.hh',
'os-string.hh', 'os-string.hh',
'pool.hh', 'pool.hh',
'pos-idx.hh', 'pos-idx.hh',

View file

@ -147,6 +147,7 @@ sources = [ config_priv_h ] + files(
'logging.cc', 'logging.cc',
'memory-source-accessor.cc', 'memory-source-accessor.cc',
'mounted-source-accessor.cc', 'mounted-source-accessor.cc',
'nar-accessor.cc',
'pos-table.cc', 'pos-table.cc',
'position.cc', 'position.cc',
'posix-source-accessor.cc', 'posix-source-accessor.cc',

View file

@ -1,4 +1,4 @@
#include "nix/store/nar-accessor.hh" #include "nix/util/nar-accessor.hh"
#include "nix/util/archive.hh" #include "nix/util/archive.hh"
#include <map> #include <map>

View file

@ -1,6 +1,6 @@
#include "nix/cmd/command.hh" #include "nix/cmd/command.hh"
#include "nix/store/store-api.hh" #include "nix/store/store-api.hh"
#include "nix/store/nar-accessor.hh" #include "nix/util/nar-accessor.hh"
#include "nix/util/serialise.hh" #include "nix/util/serialise.hh"
#include "nix/util/source-accessor.hh" #include "nix/util/source-accessor.hh"

View file

@ -1,6 +1,6 @@
#include "nix/cmd/command.hh" #include "nix/cmd/command.hh"
#include "nix/store/store-api.hh" #include "nix/store/store-api.hh"
#include "nix/store/nar-accessor.hh" #include "nix/util/nar-accessor.hh"
#include "nix/main/common-args.hh" #include "nix/main/common-args.hh"
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>