Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
flakeref.hh File Reference
#include <regex>
#include <iosfwd>
#include <string>
#include <tuple>
#include <utility>
#include "nix/store/outputs-spec.hh"
#include "nix/fetchers/registry.hh"

Go to the source code of this file.

Classes

struct  nix::FlakeRef

Typedefs

typedef std::string nix::FlakeId

Functions

std::ostream & nix::operator<< (std::ostream &str, const FlakeRef &flakeRef)
FlakeRef nix::parseFlakeRef (std::string_view url, const std::optional< std::filesystem::path > &baseDir, bool allowMissing, bool isFlake, bool preserveRelativePaths)
std::pair< FlakeRef, std::string > nix::parseFlakeRefWithFragment (std::string_view url, const std::optional< std::filesystem::path > &baseDir, bool allowMissing, bool isFlake, bool preserveRelativePaths)
std::tuple< FlakeRef, std::string, ExtendedOutputsSpec > nix::parseFlakeRefWithFragmentAndExtendedOutputsSpec (std::string_view url, const std::optional< std::filesystem::path > &baseDir, bool allowMissing, bool isFlake)

Variables

std::regex nix::flakeIdRegex

Function Documentation

◆ parseFlakeRef()

FlakeRef nix::parseFlakeRef ( std::string_view url,
const std::optional< std::filesystem::path > & baseDir = {},
bool allowMissing = false,
bool isFlake = true,
bool preserveRelativePaths = false )
Parameters
baseDirOptional base directory

◆ parseFlakeRefWithFragment()

std::pair< FlakeRef, std::string > nix::parseFlakeRefWithFragment ( std::string_view url,
const std::optional< std::filesystem::path > & baseDir = {},
bool allowMissing = false,
bool isFlake = true,
bool preserveRelativePaths = false )
Parameters
baseDirOptional base directory

◆ parseFlakeRefWithFragmentAndExtendedOutputsSpec()

std::tuple< FlakeRef, std::string, ExtendedOutputsSpec > nix::parseFlakeRefWithFragmentAndExtendedOutputsSpec ( std::string_view url,
const std::optional< std::filesystem::path > & baseDir = {},
bool allowMissing = false,
bool isFlake = true )
Parameters
baseDirOptional base directory