Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Namespaces | Functions
primops.hh File Reference

Extensions to nix primitive operations. More...

#include "flox/core/nix-state.hh"

Go to the source code of this file.

Namespaces

namespace  flox
 Interfaces for use by flox.
 

Functions

void flox::resolver::prim_resolve (nix::EvalState &state, const nix::PosIdx pos, nix::Value **args, nix::Value &value)
 Resolve a descriptor to an installable.
 

Detailed Description

Extensions to nix primitive operations.

Function Documentation

◆ prim_resolve()

void flox::resolver::prim_resolve ( nix::EvalState &  state,
const nix::PosIdx  pos,
nix::Value **  args,
nix::Value &  value 
)

Resolve a descriptor to an installable.

Takes the following arguments:

  • options: An attribute set of flox::Options.
  • flake-ref: Either an attribute set or string.
  • query: Either a string or attribute set representing a descriptor.
Parameters
stateThe nix evaluator's state.
posThe position ( file name and line/column numbers ) of the call. This is generally used for error reporting.
argsThe arguments to the primitive.
valueAn allocated nix::Value to store the result in.