From cd9ba13d507b7f5c37b06158034f544fdb24e6e7 Mon Sep 17 00:00:00 2001 From: FlafyDev Date: Thu, 22 Jun 2023 20:56:24 +0300 Subject: [PATCH] evaluate entire flake thunk makes nix not consider flake.nix as trivial --- src/libexpr/flake/flake.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 1dd23c5ca..13e517ba1 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -222,7 +222,7 @@ static Flake getFlake( throw Error("source tree referenced by '%s' does not contain a '%s/flake.nix' file", lockedRef, lockedRef.subdir); Value vInfo; - state.evalFile(CanonPath(flakeFile), vInfo, true); // FIXME: symlink attack + state.evalFile(CanonPath(flakeFile), vInfo, false); // FIXME: symlink attack expectType(state, nAttrs, vInfo, state.positions.add({CanonPath(flakeFile)}, 1, 1));