bindPath/doBind is a useful function in build that is used in several parts of LocalDerivationGoal. Moving this function makes it easier to split LocalDerivationGoal implementation between several files. Change-Id: Ic5a0768479c153c1aa3ed425f12604b20bbf0f42
17 lines
305 B
C++
17 lines
305 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "types.hh"
|
|
|
|
#if __linux__
|
|
namespace nix {
|
|
|
|
/**
|
|
* Bind-mount file or directory from `source` to `destination`.
|
|
* If source does not exist this will fail unless `optional` is set
|
|
*/
|
|
void bindPath(const Path & source, const Path & target, bool optional = false);
|
|
|
|
}
|
|
#endif
|