Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
installables.hh File Reference
#include "path.hh"
#include "outputs-spec.hh"
#include "derived-path.hh"
#include "built-path.hh"
#include "store-api.hh"
#include "build-result.hh"
#include <optional>

Go to the source code of this file.

Classes

struct  nix::ExtraPathInfo
 
struct  nix::DerivedPathWithInfo
 
struct  nix::BuiltPathWithResult
 
struct  nix::Installable
 

Typedefs

typedef std::vector< DerivedPathWithInfonix::DerivedPathsWithInfo
 
typedef std::vector< ref< Installable > > nix::Installables
 

Enumerations

enum class  nix::Realise { Outputs , Derivation , Nothing }
 
enum class  nix::OperateOn { Output , Derivation }
 

Functions

BuiltPaths nix::toBuiltPaths (const std::vector< BuiltPathWithResult > &builtPathsWithResult)
 

Typedef Documentation

◆ DerivedPathsWithInfo

typedef std::vector<DerivedPathWithInfo> nix::DerivedPathsWithInfo

Shorthand, for less typing and helping us keep the choice of collection in sync.

◆ Installables

typedef std::vector<ref<Installable> > nix::Installables

Shorthand, for less typing and helping us keep the choice of collection in sync.

Enumeration Type Documentation

◆ OperateOn

enum class nix::OperateOn
strong

How to handle derivations in commands that operate on store paths.

Enumerator
Output 

Operate on the output path.

Derivation 

Operate on the .drv path.

◆ Realise

enum class nix::Realise
strong
Enumerator
Outputs 

Build the derivation.

Postcondition: the derivation outputs exist.

Derivation 

Don't build the derivation.

Postcondition: the store derivation exists.

Nothing 

Evaluate in dry-run mode.

Postcondition: nothing.

Todo
currently unused, but could be revived if we can evaluate derivations in-memory.