Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
get-build-log.hh File Reference
#include "nix/store/store-api.hh"
#include <string>
#include <string_view>

Go to the source code of this file.

Functions

std::string nix::fetchBuildLog (ref< Store > store, const StorePath &path, std::string_view what)

Function Documentation

◆ fetchBuildLog()

std::string nix::fetchBuildLog ( ref< Store > store,
const StorePath & path,
std::string_view what )

Fetch the build log for a store path, searching the store and its substituters.

Parameters
storeThe store to search (and its substituters).
pathThe store path to get the build log for.
whatA description of what we're fetching the log for (used in messages).
Returns
The build log content.
Exceptions
Errorif the build log is not available.