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

Impure Flake #181

Open
jteppinette opened this issue Jan 6, 2025 · 3 comments
Open

Impure Flake #181

jteppinette opened this issue Jan 6, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@jteppinette
Copy link

Is your feature request related to a problem? Please describe.

As far as I can tell, this doesn't work with impure flakes. I am using builtins.currentSystem to dynamically determine hostPlatform which is failing.

Describe the solution you'd like

I would like to use an impure flake.

Describe alternatives you've considered

I have attempted to use flake-utils instead, but I can't get it working because now everything is being built for all systems.

@jteppinette jteppinette added the enhancement New feature or request label Jan 6, 2025
@jteppinette jteppinette changed the title Impure Impure Flake Jan 6, 2025
@zimbatm

This comment was marked as outdated.

@zimbatm
Copy link
Member

zimbatm commented Jan 7, 2025

@jteppinette try adding --nix-option pure-eval false to the command-line. If that works I will add it to the documentation.

@jteppinette
Copy link
Author

@zimbatm This worked. Thanks!

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

No branches or pull requests

2 participants