forked from lix-project/lix
eldritch horrors
94bf5a8018
Don’t use `execvp` when we know the path
(cherry picked from commit dfa219d03b2277e61dde1c1ddddddff7411ef112)
Change-Id: I2226340cebbe935e1f2fe10207daba69683c8cb3
20 lines
314 B
C++
20 lines
314 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "store-api.hh"
|
|
|
|
namespace nix {
|
|
|
|
enum struct UseSearchPath {
|
|
Use,
|
|
DontUse
|
|
};
|
|
|
|
void runProgramInStore(ref<Store> store,
|
|
UseSearchPath useSearchPath,
|
|
const std::string & program,
|
|
const Strings & args,
|
|
std::optional<std::string_view> system = std::nullopt);
|
|
|
|
}
|