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,7 +256,7 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
std::optional<InstallableFlake> flake;
if (myArgs.flake) {
auto [flakeRef, fragment, outputSpec] =
parseFlakeRefWithFragmentAndOutputsSpec(myArgs.releaseExpr,
parseFlakeRefWithFragmentAndExtendedOutputsSpec(myArgs.releaseExpr,
absPath("."));
flake.emplace(InstallableFlake({}, state, std::move(flakeRef), fragment,
@ -263,7 +264,7 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
flake::LockFlags{
.updateLockFile = false,
.useRegistries = false,
.allowMutable = false,
.allowUnlocked = false,
}));
};