mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
skip ifds in nix flake show instead of throwing
This commit is contained in:
parent
77f22db567
commit
fcf5966488
6 changed files with 69 additions and 15 deletions
|
@ -91,7 +91,7 @@ StringMap EvalState::realiseContext(const NixStringContext & context, StorePathS
|
|||
if (drvs.empty()) return {};
|
||||
|
||||
if (isIFD && !settings.enableImportFromDerivation)
|
||||
error<EvalBaseError>(
|
||||
error<IFDError>(
|
||||
"cannot build '%1%' during evaluation because the option 'allow-import-from-derivation' is disabled",
|
||||
drvs.begin()->to_string(*store)
|
||||
).debugThrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue