aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-16 14:16:20 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-16 14:16:20 +0200
commited9d725392827ee1516ca90ca891b2e7a66b2859 (patch)
tree04c7546b2366cbbb06099eb318ed343f5124565c
parentba66455636f40264d44c7e1fb87e13653b22042a (diff)
getFlake(): Use impureIsAllowed
This fixes 'nix build nixpkgs:hello' without --impure.
-rw-r--r--src/libexpr/primops/flake.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc
index ba303fe4a..32874f87b 100644
--- a/src/libexpr/primops/flake.cc
+++ b/src/libexpr/primops/flake.cc
@@ -253,7 +253,7 @@ static FlakeSourceInfo fetchFlake(EvalState & state, const FlakeRef flakeRef, bo
// This will return the flake which corresponds to a given FlakeRef. The lookupFlake is done within this function.
Flake getFlake(EvalState & state, const FlakeRef & flakeRef, bool impureIsAllowed = false)
{
- FlakeSourceInfo sourceInfo = fetchFlake(state, flakeRef);
+ FlakeSourceInfo sourceInfo = fetchFlake(state, flakeRef, impureIsAllowed);
debug("got flake source '%s' with revision %s",
sourceInfo.storePath, sourceInfo.rev.value_or(Hash(htSHA1)).to_string(Base16, false));