1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-19 00:39:37 +01:00

nix-flake-c: Add basic flakeref parsing and locking

This commit is contained in:
Robert Hensing 2025-03-28 13:10:35 +00:00
parent 60bffbd41b
commit a0a1d00370
4 changed files with 416 additions and 2 deletions

View file

@ -1,9 +1,32 @@
#pragma once
#include <optional>
#include "nix/util/ref.hh"
#include "nix/flake/flake.hh"
#include "nix/flake/flakeref.hh"
#include "nix/flake/settings.hh"
struct nix_flake_settings
{
nix::ref<nix::flake::Settings> settings;
};
struct nix_flake_reference_parse_flags
{
std::optional<nix::Path> baseDirectory;
};
struct nix_flake_reference
{
nix::ref<nix::FlakeRef> flakeRef;
};
struct nix_flake_lock_flags
{
nix::ref<nix::flake::LockFlags> lockFlags;
};
struct nix_locked_flake
{
nix::ref<nix::flake::LockedFlake> lockedFlake;
};