B:BD[
2.4223] → [
2.4223:4316]
runPijul({"record", std::string(file), "-m", *commitMsg}, sourcePath, {}, true);
runPijul({"record", std::string(file), "-m", *commitMsg}, root, {}, true);
}
#endif
#if NIX_VERSION >= 0x021900
std::string_view schemeName() const override
{
return "pijul"sv;
}
StringSet allowedAttrs() const override
{
return {"url"s, "channel"s, "state"s, "narHash"s, "lastModified"s};
}
#endif
#if NIX_VERSION >= 0x022100
bool isLocked(const Input &input) const override
{
return maybeGetStrAttr(input.attrs, "channel") && maybeGetStrAttr(input.attrs, "state");
}
std::pair<ref<InputAccessor>, Input> getAccessor(ref<Store> store, const Input &_input) const override
{
Input input(_input);
auto [storePath, _] = fetchToStore(store, input);
return {makeStorePathAccessor(store, storePath), input};