feat: The Great Ennixification #2
No reviewers
Labels
No labels
⚠️Priority
A (Highest)
⚠️Priority
C (High)
⚠️Priority
D (Medium-High)
⚠️Priority
E (Medium)
⚠️Priority
G (Low)
⚠️Priority
H (Lowest)
🏷️Kind
Bug
🏷️Kind
Chore
🏷️Kind
Documentation
🏷️Kind
Epic
🏷️Kind
Feature
🏷️Kind
Improvement
🏷️Kind
Task
🏷️Kind
Testing and CI
👁️Reviewed
Duplicate
👁️Reviewed
Invalid
👁️Reviewed
Under Discussion
👁️Reviewed
Valid
👁️Reviewed
Won't Fix
📋️Kind/Security
📋️Status
Abandoned
📋️Status
Blocked
📋️Status
In Progress
📋️Status
Need More Info
🔧Difficulty
A (Very hard)
🔧Difficulty
B (Hard)
🔧Difficulty
C (Medium)
🔧Difficulty
D (Easy)
🔧Difficulty
E (Trivial)
Compat
Breaking
Good First Issue
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
polyphony/workflows!2
Loading…
Reference in a new issue
No description provided.
Delete branch "nix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Whew, this is a big one. But, in line with #1, this PR makes the first steps to transition (🏳️⚧️) this repo to something that can be consumed through Nix. There's a few things happening in here, so hopefully I've done a good enough job describing it all in the README, and giving an example of it's usage in
template.If you want to test any of this locally, replace the URL for this repo in the setup command and the generated flake's inputs with
git+https://codeberg.org/polyphony/workflows?ref=nix. Should work, it's what I've been doing to test anyway.There's still a few things that need to be tackled:
docs.mdgeneration somehow, so we don't need to manually keep it in sync with the modules themselves.This should be a good start, though. Feel free to hit me with any questions about this one.
I think @alinarielle wanted to review this; I'll leave this open for ~24h (if there is no further response /nm) before I'd review it myself
@ -0,0 +1,262 @@## perSystem\.polyphony\.rust\.packageThis file is super, super nice and helpful! I am wondering though: Couldn't this documentation also be inline with the
.nixfiles?It actually already is! That docs file is generated from the option definitions in the Nix modules - see this one for an example. The actual bit that generates the docs is here, and you can generate them by running
nix build .#docsin the repo. I do need to figure out a good way to automatically do that like I mentioned in the PR message, though.That's so cool! Thanks!
I really like this PR a lot! To be fair, I do not understand the nix parts, but it is beautifully built and documented, and that's pretty amazing! Thank you so much for the effort you have put into this! 💜
Snuck in one last change, and moved devshell options under
perSystem, which makes a bit more sense. That way,extraPackagesdoesn't need to be a function and can just be a plain list, since you have apkgsset available to you already inperSystem.840fdc0841to900259c34bWow, absolutely insane job on this, looks great!