Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
get-drvs.hh File Reference
#include "lix/libexpr/eval.hh"
#include "lix/libstore/derivations.hh"
#include "lix/libstore/path.hh"
#include <string>
#include <map>

Go to the source code of this file.

Classes

struct  nix::DrvInfo

Typedefs

using nix::DrvInfos = GcList<DrvInfo>

Functions

std::optional< DrvInfonix::getDerivation (EvalState &state, Value &v, bool ignoreAssertionFailures)
void nix::getDerivations (EvalState &state, Value &v, const std::string &pathPrefix, Bindings &autoArgs, DrvInfos &drvs, bool ignoreAssertionFailures)

Function Documentation

◆ getDerivation()

std::optional< DrvInfo > nix::getDerivation ( EvalState & state,
Value & v,
bool ignoreAssertionFailures )

If value v denotes a derivation, return a DrvInfo object describing it. Otherwise return nothing.