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

Revise eval system approach #3

Open
blaggacao opened this issue Jul 15, 2023 · 0 comments
Open

Revise eval system approach #3

blaggacao opened this issue Jul 15, 2023 · 0 comments

Comments

@blaggacao
Copy link
Contributor

tui/src/flake/run.go

Lines 105 to 116 in 3096bad

if c.System == currentSystem {
return nil, fmt.Errorf("set the --for flag to a different system than the current one ('%s')", currentSystem)
}
if c.System != "" {
// if system is set, the impure flag provides a "hack" so that we
// can transport this information to the action evaluation without
// incurring in a prohibitively complex (m*n) data structure in
// which we would have to account for _all_ combinations of current
// and build system
return []string{"--impure", c.renderFragmentFor(c.System)}, nil
}

Revise these lines after NixOS/nix#4093 is merged and stabilized

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

1 participant