Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::flake::LockFile Struct Reference

Public Types

typedef std::map< ref< const Node >, std::string > KeyMap

Public Member Functions

 LockFile (const JSON &json, const Path &path)
JSON toJSON () const
std::string to_string () const
void write (const Path &path) const
std::optional< FlakeRefisUnlocked () const
bool operator== (const LockFile &other) const
bool operator!= (const LockFile &other) const
std::shared_ptr< NodefindInput (const InputPath &path)
std::map< InputPath, Node::Edge > getAllInputs () const
void check ()

Static Public Member Functions

static LockFile read (const Path &path)
static std::string diff (const LockFile &oldLocks, const LockFile &newLocks)

Public Attributes

ref< Noderoot = make_ref<Node>()

Member Function Documentation

◆ check()

void nix::flake::LockFile::check ( )

Check that every 'follows' input target exists.

◆ isUnlocked()

std::optional< FlakeRef > nix::flake::LockFile::isUnlocked ( ) const

Check whether this lock file has any unlocked inputs.


The documentation for this struct was generated from the following files:
  • lix/libexpr/flake/lockfile.hh
  • lix/libexpr/flake/lockfile.cc