forked from lix-project/lix
nixpkgsFlakeRef(): Use locked nixpkgs
This commit is contained in:
parent
04fb4e8a0f
commit
6286272371
1 changed files with 6 additions and 3 deletions
|
@ -503,9 +503,12 @@ FlakeRef InstallableFlake::nixpkgsFlakeRef() const
|
||||||
{
|
{
|
||||||
auto lockedFlake = getLockedFlake();
|
auto lockedFlake = getLockedFlake();
|
||||||
|
|
||||||
auto nixpkgsInput = lockedFlake->flake.inputs.find("nixpkgs");
|
auto nixpkgsInput = lockedFlake->lockFile.root->inputs.find("nixpkgs");
|
||||||
if (nixpkgsInput != lockedFlake->flake.inputs.end()) {
|
if (nixpkgsInput != lockedFlake->lockFile.root->inputs.end()) {
|
||||||
return std::move(nixpkgsInput->second.ref);
|
if (auto lockedNode = std::dynamic_pointer_cast<const flake::LockedNode>(nixpkgsInput->second)) {
|
||||||
|
debug("using nixpkgs flake '%s'", lockedNode->lockedRef);
|
||||||
|
return std::move(lockedNode->lockedRef);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Installable::nixpkgsFlakeRef();
|
return Installable::nixpkgsFlakeRef();
|
||||||
|
|
Loading…
Reference in a new issue