fix build with 2.13

This commit is contained in:
Jörg Thalheim 2023-01-18 16:38:38 +01:00
parent 396a0d3045
commit 205f05ac02

View file

@ -20,6 +20,7 @@
#include <nix/logging.hh>
#include <nix/error.hh>
#include <nix/installables.hh>
#include <nix/path-with-outputs.hh>
#include <nix/value-to-json.hh>
@ -255,15 +256,15 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
std::optional<InstallableFlake> flake;
if (myArgs.flake) {
auto [flakeRef, fragment, outputSpec] =
parseFlakeRefWithFragmentAndOutputsSpec(myArgs.releaseExpr,
absPath("."));
parseFlakeRefWithFragmentAndExtendedOutputsSpec(myArgs.releaseExpr,
absPath("."));
flake.emplace(InstallableFlake({}, state, std::move(flakeRef), fragment,
outputSpec, {}, {},
flake::LockFlags{
.updateLockFile = false,
.useRegistries = false,
.allowMutable = false,
.allowUnlocked = false,
}));
};