-
-
Notifications
You must be signed in to change notification settings - Fork 41
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 improvements #167
Nix improvements #167
Conversation
Not needed
Probably the same, but feels cleaner
.github/workflows/main.yml
Outdated
@@ -22,5 +22,5 @@ jobs: | |||
run: nix shell .#packages.x86_64-linux.reuse -c reuse lint | |||
|
|||
- name: build nixfmt | |||
run: nix build -L .#nixfmt-static | |||
run: nix build -L . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really the correct command when your precious PR was about using stable nix? Iirc the nix command is not stable either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point, I originally avoided this because of the nix shell
above because there's no equivalent stable command, but really, it's just nix-build .. && result/bin/reuse lint
, changed it now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from meeting...
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/formatting-team-meeting-2024-03-19/41845/1 |
Various improvements to the Nix code:
lib.fileset
library instead ofbuiltins.path
and regex based source filteringjustStaticExecutables
(doesn't mean the binaries are statically linked confusingly)nixfmt-deriver
, doesn't seem necessaryhaskellPackages.shellFor
, a bit cleaner