RPUKW357SJ6EXF5GBA4UOIKVM2Y5XVJXV3T3QVIGO3P3GBEAP3DAC
#if NIX_VERSION >= 0x022300
const Cache::Key impureKey{"pijul", {
{"name", name},
{"url", repoUrl},
}};
if (auto res = getCache()->lookupStorePath(impureKey, store)) {
auto &infoAttrs = res->value;
if ((!channel || *channel == getStrAttr(infoAttrs, "channel")) && (!state || *state == getStrAttr(infoAttrs, "state"))) {
return {std::move(res->storePath), std::move(infoAttrs)};
}
}
#else
const Attrs impureKey{
{"type", "pijul"},
{"name", name},
{"url", repoUrl},
};