Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
derivation-options.hh File Reference
#include <cstdint>
#include <optional>
#include <variant>
#include "nix/util/types.hh"
#include "nix/util/json-impls.hh"
#include "nix/store/store-dir-config.hh"
#include "nix/store/downstream-placeholder.hh"
#include "nix/store/worker-settings.hh"

Go to the source code of this file.

Classes

struct  nix::derivation::OutputChecks< Input >
struct  nix::derivation::Options< Input >

Namespaces

namespace  nix::derivation

Typedefs

template<typename Input>
using nix::DerivationOptions = derivation::Options<Input>

Functions

DerivationOptions< SingleDerivedPath > nix::derivationOptionsFromStructuredAttrs (const StoreDirConfig &store, const std::set< SingleDerivedPath > &inputs, const StringMap &env, const StructuredAttrs *parsed, bool shouldWarn, const ExperimentalFeatureSettings &mockXpSettings)
DerivationOptions< StorePath > nix::derivationOptionsFromStructuredAttrs (const StoreDirConfig &store, const StringMap &env, const StructuredAttrs *parsed, bool shouldWarn, const ExperimentalFeatureSettings &mockXpSettings)
std::optional< Options< StorePath > > nix::derivation::tryResolve (const Options< SingleDerivedPath > &drvOptions, fun< std::optional< StorePath >(ref< const SingleDerivedPath > drvPath, const std::string &outputName)> queryResolutionChain)
 JSON_IMPL (nix::DerivationOptions< nix::StorePath >)
 JSON_IMPL (nix::DerivationOptions< nix::SingleDerivedPath >)

Function Documentation

◆ derivationOptionsFromStructuredAttrs()

DerivationOptions< SingleDerivedPath > nix::derivationOptionsFromStructuredAttrs ( const StoreDirConfig & store,
const std::set< SingleDerivedPath > & inputs,
const StringMap & env,
const StructuredAttrs * parsed,
bool shouldWarn = true,
const ExperimentalFeatureSettings & mockXpSettings = experimentalFeatureSettings )

Parse this information from its legacy encoding as part of the environment. This should not be used with nice greenfield formats (e.g. JSON) but is necessary for supporting old formats (e.g. ATerm).