diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-24 10:48:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-24 10:48:23 +0200 |
commit | 362d8f925eae95f1feb912ada7e401c56d6f7398 (patch) | |
tree | 12c16dd517c0c3976796c0fc676e52ea39013dfa /src/libexpr | |
parent | 87de086e1aa2bf2fb1a953c0a7935f45f558c758 (diff) | |
parent | 8623a5b595af57c57e569d3b1e792aa640ceb980 (diff) |
Merge pull request #5253 from edolstra/flake-ifd
Don't allow IFD in flakes by default
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 8a087a781..c98a30177 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -52,7 +52,8 @@ void EvalState::realiseContext(const PathSet & context) if (drvs.empty()) return; if (!evalSettings.enableImportFromDerivation) - throw EvalError("attempted to realize '%1%' during evaluation but 'allow-import-from-derivation' is false", + throw Error( + "cannot build '%1%' during evaluation because the option 'allow-import-from-derivation' is disabled", store->printStorePath(drvs.begin()->drvPath)); /* For performance, prefetch all substitute info. */ |