aboutsummaryrefslogtreecommitdiff
path: root/src/nix/search.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-22 17:15:07 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-22 17:15:07 +0200
commit8623a5b595af57c57e569d3b1e792aa640ceb980 (patch)
treedf8f199bf7fc2380f6b6e85bac708f3365881bab /src/nix/search.cc
parentd8c10028d96d49b2c783fe279daa91402e8a91da (diff)
Disable IFD selectively
It's now disabled by default for the following: * 'nix search' (this was already implied by read-only mode) * 'nix flake show' * 'nix flake check', but only on the hydraJobs output
Diffstat (limited to 'src/nix/search.cc')
-rw-r--r--src/nix/search.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/search.cc b/src/nix/search.cc
index c52a48d4e..0d8fdd5c2 100644
--- a/src/nix/search.cc
+++ b/src/nix/search.cc
@@ -62,6 +62,7 @@ struct CmdSearch : InstallableCommand, MixJSON
void run(ref<Store> store) override
{
settings.readOnlyMode = true;
+ evalSettings.enableImportFromDerivation.setDefault(false);
// Empty search string should match all packages
// Use "^" here instead of ".*" due to differences in resulting highlighting