libexpr: warn when encountering IFD with warn-import-from-derivation

This is intended to be a softer version of
`allow-import-from-derivation`, allowing for users to only flag when IFD
is encountered rather than error out

Based-on: https://github.com/NixOS/nix/pull/13279
Co-authored-by: gustavderdrache <alex.ford@determinate.systems>
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Change-Id: I879a444e3a24b4e82a8cea3a5a94834c78c3924a
This commit is contained in:
Seth Flynn
2026-03-05 13:39:12 +00:00
committed by Qyriad
co-authored by gustavderdrache Eelco Dolstra
parent 6f25c5468d
commit b7cf773540
7 changed files with 46 additions and 0 deletions
+3
View File
@@ -99,6 +99,9 @@ goldstein:
forgejo: goldstein
github: GoldsteinE
gustavderdrache:
github: gustavderdrache
horrors:
display_name: eldritch horrors
forgejo: pennae
@@ -0,0 +1,12 @@
---
synopsis: "Emit warnings when encountering IFD with `warn-import-from-derivation`"
prs: [nix#13279]
cls: [3879]
category: Features
credits: [getchoo, gustavderdrache, edolstra]
---
Instead of only being able to toggle the use of [Import from
Derivation](https://nix.dev/manual/nix/stable/language/import-from-derivation) with
`allow-import-from-derivation`, Lix is now able to warn users whenever IFD is encountered with
`warn-import-from-derivation`.