tvix: Disable warnings by default inside of nixpkgs

#377
Opened by aspen at 2024-02-10T15·45+00

Perhaps with an opt-out.

This is more of a spike into an idea than a fully fleshed-out suggestion, as "inside of nixpkgs" is not well-defined (eg what if the user is using pins?). Regardless, this feels like the correct behavior, assuming we can get it happening consistently. It's sorta equivalent to how eg cargo disables warnings when compiling dependencies.

  1. This could probably happen whenever we import something from a store path - importing from a store path usually means it has been downloaded from elsewhere, contrary to it being a path in the local checkout.

    flokli at 2024-02-20T10·30+00