Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
fetchers.hh File Reference
#include "nix/util/types.hh"
#include "nix/util/hash.hh"
#include "nix/util/canon-path.hh"
#include "nix/util/json-impls.hh"
#include "nix/fetchers/attrs.hh"
#include "nix/util/url.hh"
#include <memory>
#include <nlohmann/json_fwd.hpp>
#include "nix/util/ref.hh"

Go to the source code of this file.

Classes

struct  nix::fetchers::Input
struct  nix::fetchers::InputScheme
struct  nix::fetchers::InputScheme::AttributeInfo
struct  nix::fetchers::PublicKey

Functions

void nix::fetchers::registerInputScheme (std::shared_ptr< InputScheme > &&inputScheme)
const InputSchemeMap & nix::fetchers::getAllInputSchemes ()
std::optional< ParsedURL > nix::fetchers::getLocalRepoURL (const std::filesystem::path &path)
std::string nix::fetchers::publicKeys_to_string (const std::vector< PublicKey > &publicKeys)

Function Documentation

◆ getAllInputSchemes()

const InputSchemeMap & nix::fetchers::getAllInputSchemes ( )

Use this for docs, not for finding a specific scheme

◆ getLocalRepoURL()

std::optional< ParsedURL > nix::fetchers::getLocalRepoURL ( const std::filesystem::path & path)

Schemes are tried in name order, so a directory that holds more than one repository (e.g. .git and .hg) always resolves the same way.