mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 08:46:16 +02:00
20 lines
412 B
C++
20 lines
412 B
C++
|
#pragma once
|
||
|
|
||
|
#include "store-api.hh"
|
||
|
|
||
|
|
||
|
namespace nix {
|
||
|
|
||
|
struct LogStore : public virtual Store
|
||
|
{
|
||
|
/* Return the build log of the specified store path, if available,
|
||
|
or null otherwise. */
|
||
|
virtual std::optional<std::string> getBuildLog(const StorePath & path) = 0;
|
||
|
|
||
|
virtual void addBuildLog(const StorePath & path, std::string_view log) = 0;
|
||
|
|
||
|
static LogStore & require(Store & store);
|
||
|
};
|
||
|
|
||
|
}
|