2024-03-06 04:24:35 +00:00
|
|
|
#pragma once
|
2024-04-08 22:07:57 +00:00
|
|
|
///@file
|
2024-03-06 04:24:35 +00:00
|
|
|
|
|
|
|
#include "source-path.hh"
|
|
|
|
#include "store-api.hh"
|
|
|
|
#include "repair-flag.hh"
|
|
|
|
#include "content-address.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Copy the `path` to the Nix store.
|
|
|
|
*/
|
|
|
|
StorePath fetchToStore(
|
|
|
|
Store & store,
|
|
|
|
const SourcePath & path,
|
|
|
|
std::string_view name = "source",
|
|
|
|
FileIngestionMethod method = FileIngestionMethod::Recursive,
|
|
|
|
PathFilter * filter = nullptr,
|
|
|
|
RepairFlag repair = NoRepair);
|
|
|
|
|
|
|
|
}
|