tvl-depot/tests/plugins/plugintest.cc
Shea Levy 88cd2d41ac
Add plugins to make Nix more extensible.
All plugins in plugin-files will be dlopened, allowing them to
statically construct instances of the various Register* types Nix
supports.
2018-02-08 12:44:37 -05:00

10 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);