Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::Constant Struct Reference

#include <eval.hh>

Public Attributes

ValueType type = nThunk
 
const chardoc = nullptr
 
bool impureOnly = false
 

Detailed Description

Info about a constant

Member Data Documentation

◆ doc

const char* nix::Constant::doc = nullptr

Optional free-form documentation about the constant.

◆ impureOnly

bool nix::Constant::impureOnly = false

Whether the constant is impure, and not available in pure mode.

◆ type

ValueType nix::Constant::type = nThunk

Optional type of the constant (known since it is a fixed value).

Todo
we should use an enum for this.

The documentation for this struct was generated from the following file: