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

[nix] clean up impure env #817

Merged
merged 2 commits into from
Oct 27, 2024
Merged

[nix] clean up impure env #817

merged 2 commits into from
Oct 27, 2024

Conversation

Avimitin
Copy link
Contributor

Yesterday I reviewed my nix code and found that this ugly part can be immediately improved. These env should not have top level binding and evaluate with empty value everytime if "--impure" does not supply. There should be value bind to them when they get evaluated, or they should never exist in our nixpkgs namespace.

Avimitin added a commit to chipsalliance/chisel-nix that referenced this pull request Oct 26, 2024
Avimitin added a commit to chipsalliance/chisel-nix that referenced this pull request Oct 26, 2024
Yesterday I reviewed my nix code and found that this ugly part can be
immediately improved. These env should not have top level binding and
evaluate with empty value everytime if "--impure" does not supply.
There should be value bind to them when they get evaluated, or they
should never exist in our nixpkgs namespace.

Signed-off-by: Avimitin <[email protected]>
Avimitin added a commit to chipsalliance/chisel-nix that referenced this pull request Oct 26, 2024
@Avimitin Avimitin requested a review from sequencer October 26, 2024 17:19
@Avimitin
Copy link
Contributor Author

wat? why the performance got improved in this PR.

@Avimitin
Copy link
Contributor Author

Seems the last CI report workflow was skip due to external repository issue. So the performance improvement doesn't get recorded. https://github.com/chipsalliance/t1/actions/runs/11477882170/job/31941451053 not a big deal, ok to merge this pr.

@sequencer sequencer merged commit fd5339a into master Oct 27, 2024
@sequencer sequencer deleted the trivial-clean-up branch October 27, 2024 02:01
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