-
-
Notifications
You must be signed in to change notification settings - Fork 89
Add Nix package, overlay, stdenv adapter, and flake #847
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
Conversation
|
Thanks! I think I'm happy to accept all of those changes. Github is showing here that all checks passed, but the actions page is showing a couple of errors. Not sure why the failure doesn't show here. Also, "Find Nix Checks" seems to have succeeded, however if I look at the logs, there are errors. I know very little about Nix, so my review of your changes is likely not very comprehensive. If @Noratrieb or @dawnofmidnight have any comments on anything, please do add them :) Is your intent to keep the commits separate when we merge or squash them? I'm happy to keep them separate if you prefer, so long as they each make sense by themselves and in the order they're committed - although it's a little hard for me to determine if this is the case. |
|
Oh I forgot a semi-colon. I'll fix it when I get home. |
|
It can be squashed, that's fine. |
|
A sandboxed nix failure that cannot be replicated locally. Terrifying. I'll investigate tomorrow. |
I'm assuming you mean this error? I see from the logs that nextest is being used. AFAIK, it runs multiple test processes (full processes, not just threads). Looking at the code in |
|
Yeah I noticed that, so the changes I pushed after was disabling Nextest. I'll rebase tomorrow cause I'm in bed 🛏️. |
|
Even after rebasing I still get an intermittent race occurring (this time on my laptop). The test is I just won't renable nextest. |
a91e6ab to
a2cf457
Compare
|
Alright, after talking with @dawnofmidnight a bit I moved the files to their own directory. I also added how to use it to the README. This does change how using the devshell work if people use it right now. Rather than |
f0b07b6 to
3a74939
Compare
|
Dawn reviewed my work on Discord, and it was implemented in 4f765fa and the other commits around that time. Nora said "I am very clueless about nix" |
|
I'll merge this now. Thanks for your work on this and Dawn for reviewing. I notice that the actions are slower than our pre-existing actions - although our alpine action is close. Is caching a possibility? Our other actions (except alpine) use caching. |
|
Yeah there's some caching and other tricks that can be experimented with. |
|
Instead of going to the nixpkgs rust overlay, it's probably better to just stay on rust-overlay if it has a cachix instance, or use Fenix since it definitely has a cachix instance. |
Thanks for the great project! This PR is best review commit-by-commit.
This works as-is, but should can wait until after #831 and
#843to remove the patches as carrying patches in-tree is sort of weird.Things done:
Example usage: https://github.com/RossSmyth/wild/blob/fa615bae64eb1999f2f11366d4904551bf1d646d/default.nix#L163-L175
I'm not sure how much of this is desired, it can be reduced in scope if desired, but I was 90% of the way there so I just put this together. Big thanks to @Noratrieb and @dawnofmidnight for their great work, I just cleaned it up and did some API plumbing.
I also do not know where the files should go, so they are just in the top-level.
Related: NixOS/nixpkgs#414558