mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-01 18:16:14 +02:00
23 lines
463 B
C++
23 lines
463 B
C++
|
#pragma once
|
||
|
|
||
|
#include "source-path.hh"
|
||
|
#include "store-api.hh"
|
||
|
#include "file-system.hh"
|
||
|
#include "repair-flag.hh"
|
||
|
#include "file-content-address.hh"
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
/**
|
||
|
* Copy the `path` to the Nix store.
|
||
|
*/
|
||
|
StorePath fetchToStore(
|
||
|
Store & store,
|
||
|
const SourcePath & path,
|
||
|
std::string_view name = "source",
|
||
|
ContentAddressMethod method = FileIngestionMethod::Recursive,
|
||
|
PathFilter * filter = nullptr,
|
||
|
RepairFlag repair = NoRepair);
|
||
|
|
||
|
}
|