88cd2d41ac
All plugins in plugin-files will be dlopened, allowing them to statically construct instances of the various Register* types Nix supports.
11 lines
212 B
C++
11 lines
212 B
C++
#include "primops.hh"
|
|
|
|
using namespace nix;
|
|
|
|
static void prim_constNull (EvalState & state, const Pos & pos, Value ** args, Value & v)
|
|
{
|
|
mkNull(v);
|
|
}
|
|
|
|
static RegisterPrimOp r("constNull", 1, prim_constNull);
|