Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
get-drvs.hh File Reference
#include "eval.hh"
#include "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< PackageInfonix::getDerivation (EvalState &state, Value &v, bool ignoreAssertionFailures)
 
void nix::getDerivations (EvalState &state, Value &v, const std::string &pathPrefix, 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.