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

refactor flake #362

Merged
merged 7 commits into from
Sep 19, 2024
Merged

refactor flake #362

merged 7 commits into from
Sep 19, 2024

Conversation

fricklerhandwerk
Copy link
Collaborator

these are some initial steps to eventually finish #209 and ease implementing #290

review commit by commit

@fricklerhandwerk
Copy link
Collaborator Author

Checked that this doesn't change the resulting store paths by diffing the sorted output of:

nix-repl> :lf .
Added 20 variables.

nix-repl> map (x: "${x}") (builtins.attrValues checks.x86_64-linux)

with the result

> diff after.txt before.txt
31d30
< "/nix/store/9mgs8as4g1l0wg8gpva67kgynxpr5qkw-pre-commit-run"
58a58
> "/nix/store/mx9pv5fwxx9hy3ips22964lmrr8jpqjk-overview"
69a70
> "/nix/store/smydjgxqskrgw8na6pc70nv6d9s6i8i3-pre-commit-run"
76d76
< "/nix/store/x378i75yndm5iflpr3p8i68wxmnwjs8j-overview"

Didn't have the time to run nix-diff on those yet, but I suspect it will be insubstantial for our purposes anyway.

it obscured what's really happening.

also skip an unnecessary import.
those namespaces are disjoint, so there's no need to obscure that they
are simply joined.
the only point where we need it is for the checks.

also make the naming a bit less noisy.
@wegank wegank merged commit 6f30c8f into ngi-nix:main Sep 19, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants