Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::LazyFetcherAttr Class Reference
Inheritance diagram for nix::LazyFetcherAttr:
nix::ExternalValueBase gc_cleanup

Public Member Functions

 LazyFetcherAttr (fetchers::LazyAttr lazy)
fetchers::ResolvedAttr force ()
std::string showType () const override
std::string typeOf () const override
Public Member Functions inherited from nix::ExternalValueBase
virtual std::string coerceToString (EvalState &state, const PosIdx &pos, NixStringContext &context, bool copyMore, bool copyToStore) const
virtual bool operator== (const ExternalValueBase &b) const noexcept
virtual nlohmann::json printValueAsJSON (EvalState &state, bool strict, NixStringContext &context, bool copyToStore=true) const
virtual void printValueAsXML (EvalState &state, bool strict, bool location, XMLWriter &doc, NixStringContext &context, StringSet &drvsSeen, const PosIdx pos) const

Protected Member Functions

std::ostream & print (std::ostream &str) const override

Detailed Description

Adapter for putting libfetchers data into a thunk closure. Used as the argument to prim_forceLazyFetcherAttr in a lazy apply thunk.

Member Function Documentation

◆ print()

std::ostream & nix::LazyFetcherAttr::print ( std::ostream & str) const
inlineoverrideprotectedvirtual

Print out the value

Implements nix::ExternalValueBase.

◆ showType()

std::string nix::LazyFetcherAttr::showType ( ) const
inlineoverridevirtual

Return a simple string describing the type

Implements nix::ExternalValueBase.

◆ typeOf()

std::string nix::LazyFetcherAttr::typeOf ( ) const
inlineoverridevirtual

Return a string to be used in builtins.typeOf

Implements nix::ExternalValueBase.


The documentation for this class was generated from the following file:
  • libexpr/primops/fetchTree.cc