aboutsummaryrefslogtreecommitdiff
path: root/tests/plugins/plugintest.cc
blob: f788c4814322a791ab8ef68b098a34b634548434 (plain)
1
2
3
4
5
6
7
8
9
10
#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);