Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remore restrict-eval #863

Open
XYenon opened this issue Mar 10, 2025 · 2 comments
Open

Remore restrict-eval #863

XYenon opened this issue Mar 10, 2025 · 2 comments

Comments

@XYenon
Copy link

XYenon commented Mar 10, 2025

With restrict-eval, inputs other than <nixpkgs> are not allowed, severely limiting the NUR. For instance, it prevents using rust-overlay to build packages with nightly Rust. Additionally, I discovered that Nix plans to deprecate the restrict-eval option NixOS/nix#8295.

@Pandapip1
Copy link
Collaborator

If I'm not mistaken, the reason this is done is for flakes support. I'll investigate this later.

@XYenon
Copy link
Author

XYenon commented Mar 11, 2025

I think it is to prevent token leaks #92, but pure eval should do the same thing.
https://github.com/NixOS/nix/blob/cacab33f0df21c2ea54d553d75872bcf50717269/src/libexpr/primops.cc#L985-L989
Does NUR allow impure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants