Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
get-drvs.hh File Reference
#include "nix/expr/eval.hh"
#include "nix/store/path.hh"
#include <string>
#include <map>

Go to the source code of this file.

Classes

struct  nix::PackageInfo

Typedefs

typedef std::list< PackageInfo, traceable_allocator< PackageInfo > > nix::PackageInfos

Functions

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

Function Documentation

◆ getDerivation()

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

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