util.hh: Move nativeSystem to local-derivation-goal.cc

Change-Id: I74565fbfd3aeedef8f50465808fac712b84e47ad
This commit is contained in:
Tom Hubrecht 2024-05-28 16:27:48 +02:00
parent d73c40ff3d
commit f0eb650ee8
3 changed files with 5 additions and 7 deletions

View file

@ -64,6 +64,11 @@ extern "C" int sandbox_init_with_parameters(const char *profile, uint64_t flags,
namespace nix {
/**
* The system for which Nix is compiled.
*/
constexpr std::string_view nativeSystem = SYSTEM;
void handleDiffHook(
uid_t uid, uid_t gid,
const Path & tryA, const Path & tryB,

View file

@ -10,8 +10,6 @@
namespace nix {
const std::string nativeSystem = SYSTEM;
void BaseError::addTrace(std::shared_ptr<Pos> && e, HintFmt hint)
{
err.traces.push_front(Trace { .pos = std::move(e), .hint = hint });

View file

@ -33,11 +33,6 @@ namespace nix {
struct Sink;
struct Source;
/**
* The system for which Nix is compiled.
*/
extern const std::string nativeSystem;